|
|
@ -1350,13 +1350,10 @@ KMCommand::Result KMForwardAttachedCommand::execute()
|
|
|
|
KMMessagePart *msgPart = new KMMessagePart;
|
|
|
|
KMMessagePart *msgPart = new KMMessagePart;
|
|
|
|
msgPart->setTypeStr("message");
|
|
|
|
msgPart->setTypeStr("message");
|
|
|
|
msgPart->setSubtypeStr("rfc822");
|
|
|
|
msgPart->setSubtypeStr("rfc822");
|
|
|
|
msgPart->setCharset(msg->charset());
|
|
|
|
|
|
|
|
msgPart->setName("forwarded message");
|
|
|
|
msgPart->setName("forwarded message");
|
|
|
|
msgPart->setContentDescription(msg->from()+": "+msg->subject());
|
|
|
|
msgPart->setContentDescription(msg->from()+": "+msg->subject());
|
|
|
|
msgPart->setContentDisposition( "inline" );
|
|
|
|
msgPart->setContentDisposition( "inline" );
|
|
|
|
// THIS HAS TO BE AFTER setCte()!!!!
|
|
|
|
|
|
|
|
msgPart->setMessageBody( KMail::Util::ByteArray( msg->asDwString() ) );
|
|
|
|
msgPart->setMessageBody( KMail::Util::ByteArray( msg->asDwString() ) );
|
|
|
|
msgPart->setCharset("");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fwdMsg->link(msg, KMMsgStatusForwarded);
|
|
|
|
fwdMsg->link(msg, KMMsgStatusForwarded);
|
|
|
|
mWin->addAttach(msgPart);
|
|
|
|
mWin->addAttach(msgPart);
|
|
|
@ -2893,7 +2890,9 @@ KMCommand::Result KMResendMessageCommand::execute()
|
|
|
|
whiteList << "To" << "Cc" << "Bcc" << "Subject";
|
|
|
|
whiteList << "To" << "Cc" << "Bcc" << "Subject";
|
|
|
|
newMsg->sanitizeHeaders( whiteList );
|
|
|
|
newMsg->sanitizeHeaders( whiteList );
|
|
|
|
|
|
|
|
|
|
|
|
newMsg->setCharset(msg->codec()->mimeName());
|
|
|
|
if( newMsg->type() == DwMime::kTypeText) {
|
|
|
|
|
|
|
|
newMsg->setCharset(msg->codec()->mimeName());
|
|
|
|
|
|
|
|
}
|
|
|
|
newMsg->setParent( 0 );
|
|
|
|
newMsg->setParent( 0 );
|
|
|
|
|
|
|
|
|
|
|
|
// make sure we have an identity set, default, if necessary
|
|
|
|
// make sure we have an identity set, default, if necessary
|
|
|
|