Set the right identity ni the composer window on reply mails.

svn path=/trunk/kdepim/; revision=352844
wilder-work
Till Adam 22 years ago
parent 0ab4c49533
commit dc1fd61b5e
  1. 9
      callback.cpp

@ -69,10 +69,6 @@ bool Callback::mailICal( const QString& to, const QString iCal,
* has been sent successfully. Set a link header which accomplishes that. */
msg->link( mMsg, KMMsgStatusDeleted );
KMComposeWin *cWin = new KMComposeWin(msg);
// cWin->setCharset( "", true );
cWin->slotWordWrapToggled( false );
// Outlook will only understand the reply if the From: header is the
// same as the To: header of the invitation message.
KConfigGroup options( KMKernel::config(), "Groupware" );
@ -83,8 +79,13 @@ bool Callback::mailICal( const QString& to, const QString iCal,
if( identity != KPIM::Identity::null )
// Identity found. Use this
msg->setFrom( identity.fullEmailAddr() );
msg->setHeaderField("X-KMail-Identity", QString::number( identity.uoid() ));
}
KMComposeWin *cWin = new KMComposeWin(msg);
// cWin->setCharset( "", true );
cWin->slotWordWrapToggled( false );
// TODO: These are no longer available. It was an internal
// implementation detail of kmcomposewin, anyway. Please find
// another way...

Loading…
Cancel
Save