[Bug 145091] problems accepting outlook invitation
tstaerk
dev at staerk.de
Sat May 5 22:44:02 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=145091
------- Additional Comments From dev staerk de 2007-05-05 23:44 -------
the following patch resolves this problem:
Index: kmail/callback.h
===================================================================
--- kmail/callback.h (revision 661416)
+++ kmail/callback.h (working copy)
@ -57,7 +57,7 @
/** Mail a message */
bool mailICal( const QString& to, const QString iCal,
- const QString& subject ) const;
+ const QString& subject, int reply ) const;
/** Get the receiver of the mail */
QString receiver() const;
Index: kmail/callback.cpp
===================================================================
--- kmail/callback.cpp (revision 661416)
+++ kmail/callback.cpp (working copy)
@ -57,13 +57,14 @
}
bool Callback::mailICal( const QString& to, const QString iCal,
- const QString& subject ) const
+ const QString& subject, int reply ) const
{
kdDebug(5006) << "Mailing message:\n" << iCal << endl;
KMMessage *msg = new KMMessage;
msg->initHeader();
msg->setSubject( subject );
+ if (reply == 5) msg->setSubject("The sender has accepted the invitation");
msg->setTo( to );
msg->setFrom( receiver() );
/* We want the triggering mail to be moved to the trash once this one
Index: plugins/kmail/bodypartformatter/text_calendar.cpp
===================================================================
--- plugins/kmail/bodypartformatter/text_calendar.cpp (revision 661416)
+++ plugins/kmail/bodypartformatter/text_calendar.cpp (working copy)
@ -223,12 +223,13 @
format.setTimeZone( KPimPrefs::timezone(), false );
QString msg = format.createScheduleMessage( incidence,
Scheduler::Reply );
+ kdDebug() << "scheduler::REPly=" << Scheduler::Reply << endl;
QString subject;
if ( !incidence->summary().isEmpty() )
subject = i18n( "Answer: %1" ).arg( incidence->summary() );
else
subject = i18n( "Answer: Incidence with no summary" );
- return callback.mailICal( incidence->organizer().fullName(), msg, subject );
+ return callback.mailICal( incidence->organizer().fullName(), msg, subject, Scheduler::Reply );
}
bool saveFile( const QString& receiver, const QString& iCal,
More information about the Kdepim-bugs
mailing list