Not only set the boundary, but the complete content-type when signing/encypting.

This should fix the missing charset parameter for signed messages.
Needs a bit more testing (inline invitations, HTML images etc), but hey, this
is trunk again :)

svn path=/trunk/KDE/kdepim/; revision=914215
wilder-work
Thomas McGuire 17 years ago
parent f549f4440c
commit d8b322a304
  1. 13
      messagecomposer.cpp

@ -1552,14 +1552,13 @@ void MessageComposer::composeMessage( KMMessage &theMessage,
DwBodyPart *dwPart;
dwPart = theMessage.createDWBodyPart( &mOldBodyPart );
// Make sure to set the boundary of the body part, that is the only thing not done
// by createDWBodyPart().
if ( !mSaveBoundary.empty() ) {
DwHeaders &headers = dwPart->Headers();
DwMediaType &ct = headers.ContentType();
ct.SetBoundary( mSaveBoundary );
}
// Make sure to set the boundary and content-type of the body part,
// that is the only thing not done in createDWBodyPart()
DwHeaders &headers = dwPart->Headers();
headers.ContentType().FromString( mOldBodyPart.originalContentTypeStr() );
headers.ContentType().Parse();
dwPart->Assemble();
mEncodedBody = dwPart->AsString().c_str();
delete dwPart;
dwPart = 0;

Loading…
Cancel
Save