[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: Re: [Kde-pim] Sending invitations to Outlook users
From: Thorsten Schnebeck <thorsten.schnebeck () gmx ! net>
Date: 2007-02-13 12:57:21
Message-ID: 200702131357.21623.thorsten.schnebeck () gmx ! net
[Download RAW message or body]
On Tuesday, February 13, 2007 09:54:52 AM Jan-Pascal van Best wrote:
> Hi all,
>
> Could someone using Outlook with Exchange try the following: replace in
> kmail/callback.cpp the method Callback::mailICal with the version below.
> It seems to work, but I cannot completely test it. I'm moving shortly,
> and my Exchange server is in a temporary location where I can't connect
> to it using Outlook. OWA (Outlook Web Access) shows the proper icon for
> the invitation confirmation, but I cannot see the attendee status in OWA.
>
> Basically, I've merged in the message building part from
> KMKernel::openComposer into Callback::mailICal (it seems there is quite
> some code duplication there, by the way). It looks like Exchange groks
> the reply, but as I mentioned above, could someone using Outlook with
> Exchange please test?
>
> Cheers
>
> Jan-Pascal
>
>
Hi Jan-Pascal,
attendee status in Outlook is fine with your modification. I attach a patch
for the file as you also have to include a new header. Question is now how to
get this stuff into official source?
Bye
Thorsten
["exchange-compat.patch" (text/x-diff)]
--- kmail/callback.cpp.orig 2007-02-13 11:39:16.000000000 +0100
+++ kmail/callback.cpp 2007-02-13 12:13:22.000000000 +0100
@@ -33,6 +33,7 @@
#include "callback.h"
#include "kmkernel.h"
#include "kmmessage.h"
+#include "kmmsgpart.h"
#include <libemailfunctions/email.h>
#include <libkpimidentities/identity.h>
#include <libkpimidentities/identitymanager.h>
@@ -62,12 +63,11 @@
KMMessage *msg = new KMMessage;
msg->initHeader();
- msg->setHeaderField( "Content-Type",
- "text/calendar; method=reply; charset=\"utf-8\"" );
- msg->setSubject( subject );
- msg->setTo( to );
- msg->setBody( iCal.utf8() );
- msg->setFrom( receiver() );
+ msg->setCharset( "utf-8" );
+
+ if ( !subject.isEmpty() ) msg->setSubject( subject );
+ if ( !to.isEmpty() ) msg->setTo( to );
+ if ( !subject.isEmpty() ) msg->setFrom( receiver() );
/* We want the triggering mail to be moved to the trash once this one
* has been sent successfully. Set a link header which accomplishes that. */
msg->link( mMsg, KMMsgStatusDeleted );
@@ -87,11 +87,20 @@
msg->setBcc( "" );
}
+ KMMessagePart *msgPart = new KMMessagePart;
+ msgPart->setName( "cal.ics" );
+ // msgPart->setCteStr( attachCte ); // "base64" ?
+ msgPart->setBodyEncoded( iCal.utf8() );
+ msgPart->setTypeStr( "text" );
+ msgPart->setSubtypeStr( "calendar" );
+ msgPart->setParameter( "method", "reply" );
+
KMail::Composer * cWin = KMail::makeComposer();
cWin->setMsg( msg, false /* mayAutoSign */ );
// cWin->setCharset( "", true );
cWin->slotWordWrapToggled( false );
cWin->setSigningAndEncryptionDisabled( true );
+ cWin->addAttach(msgPart);
if ( options.readBoolEntry( "AutomaticSending", true ) ) {
cWin->setAutoDeleteWindow( true );
_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic