Summary: | Recurring event in the vcalendar plugin makes claws mail start extremely slowly | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Claws Mail (GTK 2) | Reporter: | Charles-H. Schulz <charles-h.schulz> | ||||||||
Component: | Plugins/vCalendar | Assignee: | users | ||||||||
Status: | NEW --- | ||||||||||
Severity: | normal | CC: | charles-h.schulz, cweiske, dustin.glidden, setopast, thymian | ||||||||
Priority: | P3 | ||||||||||
Version: | 3.7.10 | ||||||||||
Hardware: | PC | ||||||||||
OS: | Linux | ||||||||||
Attachments: |
|
Description
Charles-H. Schulz
2011-11-21 14:24:55 UTC
Can you attach such a recurring event ? Created attachment 1287 [details]
recurring event template
replace the value of "event/answer/attendee" with one of you own e-mail and place it in ~/.claws-mail/vcalendar/
this recurring event creates dayly meeting at 09:00UTC and an hour duration
this annoying freezing also occur every some minutes if you turn on alerts for events in preferences even you are not working with vCalendar at this time, for example when you are compose a new message or just write a reply the reason is the nonoptimal routine vcal_get_events_list() which recreates 100 occurence-files for every recurring event at every call, also it saves backup file for each one (by using function developed for prefs controlling) it takes a huge amount of time at: — the starting of the app — the entering into calendar folder — every time claws-mail checks if it's time to alert a close event number of occurences of the recurring event (100) is hardcoded in sources, but what can I do if I need more instances? is it time to refactoring this strange code? ;) Created attachment 1289 [details]
vCalendar template file for recurring event
attaching new standard vcal instead of previously xml-file cause it's internal representation
1. replace template e-mail in this file ("ATTENDEE:user@localhost") with your own address
2. send the file as attachment to yourself; choose mime-type "text/calendar" for this one
3. push button "Answer" (with "Accept" Action) on the vcal in received message
Created attachment 1290 [details]
fix freezes workaround
after some digging I've made a patch which reduce frequency of freezing times;
it recreates occurrences of the recurring event not so often, but only:
— at application start;
— in a day (24 hours) after previously one
this helps to escape freezes at entering in calendar folder and at every check for alerts
it still freeze at start;
and it adds a side effect: while accepting a new recurrent event all occurrences (except original) appears in program only after 24 hours or after restarting claws-mail
it works for me (claws-mail-plugins-vcalendar-3.9.2-3.fc19.x86_64) but this just workaround and I hope that the developers will fix it correct
|