summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2012-04-12 18:49:55 (GMT)
committerMontel Laurent <montel@kde.org>2012-04-12 18:49:55 (GMT)
commit46648213ff39174e2629ef594b2b1e241d19d665 (patch)
tree654fd3adc9c17a6b4e86c4f888152967ae9ba4f9
parentcb89396d242ce4001b46a66c3acf77ef642b9fe1 (diff)
Fix Bug 297934 - BCC is not removed when attaching messages
FIXED-IN: 4.8.3 BUG: 297934
-rw-r--r--messagecomposer/messagefactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/messagecomposer/messagefactory.cpp b/messagecomposer/messagefactory.cpp
index 953eaa2..67e531f 100644
--- a/messagecomposer/messagefactory.cpp
+++ b/messagecomposer/messagefactory.cpp
@@ -440,9 +440,11 @@ QPair< KMime::Message::Ptr, QList< KMime::Content* > > MessageFactory::createAtt
KMime::Content *MessageFactory::createForwardAttachmentMessage(const KMime::Message::Ptr& fwdMsg)
{
+ qDebug()<<" KMime::Content *MessageFactory::createForwardAttachmentMessage(const KMime::Message::Ptr& fwdMsg)******************";
// remove headers that shouldn't be forwarded
MessageCore::StringUtil::removePrivateHeaderFields( fwdMsg );
- fwdMsg->removeHeader("BCC");
+ fwdMsg->removeHeader("Bcc");
+ fwdMsg->assemble();
// set the part
KMime::Content *msgPart = new KMime::Content( fwdMsg.get() );
msgPart->contentType()->setMimeType( "message/rfc822" );