Commit 5e7b74cd authored by Kevin Krammer's avatar Kevin Krammer
Browse files

Need to call KMime::Message::parse() after setHead/setContent, otherwise the...

Need to call KMime::Message::parse() after setHead/setContent, otherwise the envelope is not filled correctly.
Fixes the "no subject" problem in kmail

svn path=/trunk/KDE/kdepim/runtime/; revision=1196623
parent cde41db6
...@@ -827,6 +827,7 @@ bool MixedMaildirStore::Private::fillItem( MBoxPtr &mbox, bool includeBody, Item ...@@ -827,6 +827,7 @@ bool MixedMaildirStore::Private::fillItem( MBoxPtr &mbox, bool includeBody, Item
const QByteArray data = mbox->readEntryHeaders( offset ); const QByteArray data = mbox->readEntryHeaders( offset );
messagePtr->setHead( KMime::CRLFtoLF( data ) ); messagePtr->setHead( KMime::CRLFtoLF( data ) );
} }
messagePtr->parse();
item.setPayload<KMime::Message::Ptr>( messagePtr ); item.setPayload<KMime::Message::Ptr>( messagePtr );
return true; return true;
...@@ -852,6 +853,7 @@ bool MixedMaildirStore::Private::fillItem( const MaildirPtr &md, bool includeBod ...@@ -852,6 +853,7 @@ bool MixedMaildirStore::Private::fillItem( const MaildirPtr &md, bool includeBod
messagePtr->setHead( KMime::CRLFtoLF( data ) ); messagePtr->setHead( KMime::CRLFtoLF( data ) );
} }
messagePtr->parse();
item.setPayload<KMime::Message::Ptr>( messagePtr ); item.setPayload<KMime::Message::Ptr>( messagePtr );
return true; return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment