[Bug 146534] mails started from a template have wrong date   
    Jonathan Marten 
    jjm at keelhaul.me.uk
       
    Tue Jun 12 16:36:18 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         
------- Additional Comments From jjm keelhaul me uk  2007-06-12 17:36 -------
SVN commit 674569 by marten:
Remove date and message-id from template message, so that new message
will be assigned new up-to-date ones.
CCBUG:146534
 M  +4 -0      kmcommands.cpp  
--- branches/KDE/3.5/kdepim/kmail/kmcommands.cpp #674568:674569
 @ -699,6 +699,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