[Bug 146534] mails started from a template have wrong date

Jonathan Marten jjm at keelhaul.me.uk
Tue Jun 12 16:39:29 BST 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=146534         
jjm keelhaul me uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From jjm keelhaul me uk  2007-06-12 17:39 -------
SVN commit 674571 by marten:

Forward port of 674569 from 3.5 branch:
Remove date and message-id from template message, so that new message 
will be assigned new up-to-date ones. 
  
BUG:146534 


 M  +4 -0      kmcommands.cpp  


--- trunk/KDE/kdepim/kmail/kmcommands.cpp #674570:674571
 @ -706,6 +706,10  @
   KMMessage *newMsg = new KMMessage( new DwMessage( *msg->asDwMessage() ) );
   newMsg->setComplete( msg->isComplete() );
 
+  // these fields need to be regenerated for the new message
+  newMsg->removeHeaderField("Date");
+  newMsg->removeHeaderField("Message-ID");
+
   KMail::Composer *win = KMail::makeComposer();
   newMsg->setTransferInProgress( false ); // From here on on, the composer owns the message.
   win->setMsg( newMsg, false, true );



More information about the Kdepim-bugs mailing list