Bug 2195

Summary: Improve folder processing
Product: Claws Mail (GTK 2) Reporter: Michal Kurgan <michal.kurgan>
Component: FilteringAssignee: users
Status: NEW ---    
Severity: enhancement    
Priority: P3    
Version: 3.7.6   
Hardware: PC   
OS: Linux   

Description Michal Kurgan 2010-05-06 05:40:39 UTC
Currently we can assign per folder processing that is executed at startup, display and on request. However it would be very useful to permit additional processing triggers, e.g. insert into folder.

Adding additional trigger would require probably small revamp of processing setup. Currently processing triggers are specified globally for all folder actions in folder Properties dialog. Triggers should be processing entry specific, similarly as filters are assigned to account. User could select if specific entry should be executed on specific trigger or some predefined set of triggers, e.g. ALL, Startup, Entry, Insert.

Use case, per folder notifications on receiving mail (i.e. messages of specific person, failure notifications).
Comment 1 Holger Berndt 2010-05-06 06:10:25 UTC
When you let insertion into a folder trigger processing rules, you have to do some kind of loop-detection.
Comment 2 Michal Kurgan 2010-05-06 06:43:58 UTC
Can you be more specific what you mean by loop-detection? Do you just mean here something like moving message between two folders?
Comment 3 Holger Berndt 2010-05-06 06:46:58 UTC
Yeah, bouncing messages. Folder A sends the message to Folder B, which sends it back to A, which sends it back to B, until eternity. When those chains get more complicated, it's not entirely trivial to detect such loops.
Comment 4 Michal Kurgan 2010-05-06 07:13:54 UTC
Solution may be as simple as defining trigger as "Filter Insert/Move".