Bug 310706

Summary: korganizer doesn't send outlook compatible invitations
Product: [Applications] kdepim Reporter: Jon Moon <jon.moon>
Component: libkdepimAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: 4.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.9.4

Description Jon Moon 2012-11-26 12:36:38 UTC
In my configuration I have selected the 'Send Invitations in the mail body' option in kmail's 'Misc/Inivitations' tab.

korganizer ignores this.

After debugging, it looks as though the code in kdepim/calendarsupport/mailclient.cpp is looking at the 'mailviewerrc' config file, whereas kmail stores its config in kmail2rc.

So I was able to workaround this problem by adding the following lines to mailviewerrc:

[Invitations]
LegacyBodyInvites=true

However AFAICT there's no GUI option to configure this, and worse the GUI option which exists is ignored.

Should the code be changed to look at kmail2rc instead?

There are no other references to mailviewerrc AFACIT:

~/kde$ ls
akonadi-1.8.1  kdepim-4.9.3  kdepimlibs-4.9.3  kdepim-runtime-4.9.3
~/kde$ find . -type f | xargs grep 'mailviewerrc'
./kdepim-4.9.3/messageviewer/messageviewer.kcfg.cmake:  <kcfgfile name="mailviewerrc" />
./kdepim-4.9.3/calendarsupport/mailclient.cpp:  KConfig config( "mailviewerrc" );


Reproducible: Always

Steps to Reproduce:
1. Enable 'Send Invitiations in Mail body' configuration in KMail's Misc/Invitations tab
2. Create an invitation in korganizer to another person
3. Agree to send an e-mail
Actual Results:  
Invitation is sent as an attachment

Expected Results:  
Inivitation is sent inline
Comment 1 Jon Moon 2012-11-26 12:39:28 UTC
One other note - this is the commit which added the functionality to korganizer to check mailviewerrc -

https://bugs.kde.org/show_bug.cgi?id=264604
Comment 2 Laurent Montel 2012-11-26 13:09:58 UTC
Thanks for infos.
Will look at soon.
It's right it's not store in good file.
Comment 3 Laurent Montel 2012-11-26 13:14:11 UTC
Git commit 783e1318cf12f612302e48e2f128afb3fa0804f6 by Montel Laurent.
Committed on 26/11/2012 at 14:13.
Pushed by mlaurent into branch 'KDE/4.9'.

Fix 310706 New: korganizer doesn't send outlook compatible invitations

Thanks 	Jon Moon for debugging it.

FIXED-IN: 4.9.4

M  +1    -1    calendarsupport/mailclient.cpp

http://commits.kde.org/kdepim/783e1318cf12f612302e48e2f128afb3fa0804f6
Comment 4 Laurent Montel 2012-11-26 13:14:29 UTC
Thanks for debugging it.
Regards