[Bug 140549] templates for forwarding does not work with emails from mailinglists
Dmitry Morozhnikov
dmiceman at ubiz.ru
Wed Jan 31 07:27:36 GMT 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=140549
------- Additional Comments From dmiceman ubiz ru 2007-01-31 08:27 -------
SVN commit 628742 by dmiceman:
Create all inline forward messages as text/plain
CCBUG: 140549
M +9 -3 kmmessage.cpp
--- branches/KDE/3.5/kdepim/kmail/kmmessage.cpp #628741:628742
@ -1217,14 +1217,20 @
msg->initFromMessage( this );
//restore type
- msg->setType( type );
- msg->setSubtype( subtype );
+ // msg->setType( type );
+ // msg->setSubtype( subtype );
+
+ // set plain text content type for forwarded message
+ // of you change this, please test how templates work on forward
+ msg->setType( DwMime::kTypeText );
+ msg->setSubtype( DwMime::kSubtypePlain );
} else if( type() == DwMime::kTypeText && subtype() == DwMime::kSubtypeHtml ) {
// This is non-multipart html mail. Let`s make it text/plain and allow
// template parser do the hard job.
msg->initFromMessage( this );
msg->setType( DwMime::kTypeText );
- msg->setSubtype( DwMime::kSubtypeHtml );
+ // msg->setSubtype( DwMime::kSubtypeHtml );
+ msg->setSubtype( DwMime::kSubtypePlain );
msg->mNeedsAssembly = true;
msg->cleanupHeader();
} else {
More information about the Kdepim-bugs
mailing list