diff --git a/callback.cpp b/callback.cpp index 7fa24875c..5bc0d5e2a 100644 --- a/callback.cpp +++ b/callback.cpp @@ -65,6 +65,16 @@ bool Callback::mailICal( const QString& to, const QString &iCal, KMMessage *msg = new KMMessage; msg->initHeader(); msg->setSubject( subject ); + if ( GlobalSettings::self()->exchangeCompatibleInvitations() ) { + if ( status == QString("cancel") ) + msg->setSubject( QString("Declined: %1").arg(subject).replace("Answer: ","") ); + else if ( status == QString("tentative") ) + msg->setSubject(QString("Tentative: %1").arg(subject).replace("Answer: ","") ); + else if ( status == QString("accepted") ) + msg->setSubject( QString("Accepted: %1").arg(subject).replace("Answer: ","") ); + else if ( status == QString("delegated") ) + msg->setSubject( QString("Delegated: %1").arg(subject).replace("Answer: ","") ); + } msg->setTo( to ); msg->setFrom( receiver() ); diff --git a/callback.h b/callback.h index 29fba7acf..716b436dd 100644 --- a/callback.h +++ b/callback.h @@ -60,7 +60,7 @@ public: KMMessage* getMsg() const { return mMsg; } /** Mail a message - * @ param status can be accepted/declined/tentative + * @ param status can be accepted/cancel/tentative/delegated */ bool mailICal( const QString &to, const QString &iCal, const QString &subject, const QString &status,