Bug 128255 - importing ics files from kmail
Summary: importing ics files from kmail
Status: RESOLVED WORKSFORME
Alias: None
Product: korganizer
Classification: Applications
Component: import/export (show other bugs)
Version: 3.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-29 17:33 UTC by Einar Th. Einarsson
Modified: 2011-03-12 12:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Einar Th. Einarsson 2006-05-29 17:33:42 UTC
Version:           3.5 (using KDE 3.5.2 Level "a" , SUSE 9.3 UNSUPPORTED)
Compiler:          gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
OS:                Linux (i686) release 2.6.11.4-21.11-default

When getting an ics attachment with kmail and clicking it, kmail offers to import the file into Korganizer.  

KOrganizer then pops up asking for confirmation on action being taken on the file 'file:///tmp/kde-username/meeting.ics_[XXXXXX].ics' where XXXXXX is again a random string (presumably from mkstemp()).

I did a little trace on this and it appears that this file is created and korganizer is being fed the correct path to it (by somehow exec-ing 'korganizer --import %u'). 

After doing some tracing I see that korganizer clones or forks itself upon startup and the original process exits shortly thereafter. Now, kmail unlinks the file as soon as the 'handler' (korganizer in this case) exits and the cloned korganizer process doesn't try to open it until after asking the user if he wants to merge with existing calendar yadayada and getting a response.  By that time the file no longer exists and nothing gets (silently) imported. 

Since Kmail's behavior is propably the most correct behavior, methinks Korganizer should get a handle on the file before the call to fork/clone and/or make a copy of it to use in the import.

cheers.
Comment 1 Reinhold Kainhofer 2006-11-02 19:19:35 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 2 Ken Koster 2007-01-02 21:35:31 UTC
I verified the same bug is present in 3.5.5 "release 19.1" under SuSE Linux 10.1. 

It may be related to bug 121452 which is about importing meeting.ics files from Kmail while running Kontact.  
Comment 3 Ken Koster 2007-01-02 21:42:15 UTC
Ooops, make that bug 121542.
Comment 4 Sergio Martins 2011-03-12 12:39:21 UTC
Can't reproduce, invitations are working correctly now.