6.0.0-git
2018-12-16

[#14642] Multiple action
Summary Multiple action
Queue Ingo
Queue Version Git master
Type Enhancement
State Feedback
Priority 2. Medium
Owners
Requester vittorio (at) vitsoft (dot) bz
Created 2017-05-16 (579 days ago)
Due
Updated 2017-05-19 (576 days ago)
Assigned
Resolved
Milestone
Patch No

History
2017-05-19 08:39:40 Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
You can already have multiple actions by duplicating a rule and then 
changing it to use the other requested action. Changing Ingo to work 
exactly like you requested would require much more changes though. For 
example it's not possible to do a conditional vacation rule at all yet.
Allowing multiple actions, or allowing to conditionalize the special 
rules, or even have multiple of those, would require a lot of work 
though, so this is very unlikely to happen without sponsoring.
2017-05-16 06:53:53 vittorio (at) vitsoft (dot) bz Comment #1
Type ⇒ Enhancement
State ⇒ New
Priority ⇒ 2. Medium
Summary ⇒ Multiple action
Queue ⇒ Ingo
Milestone ⇒
Patch ⇒ No
Reply to this comment
Would be possible have a choice for multiple action in a rule ?
For example I want that all mail received on Saturnday and Sunday for 
a specfic mail address should be delivered to the mailbox and that a 
message is sent back that say the office are closed.

This is a simple sieve script that do that :
if anyof ( header :comparator "i;ascii-casemap" :contains "Received" 
"Sat", header :comparator "i;ascii-casemap" :contains "Received" "Sun" 
) {
     keep;
     vacation :days 1 :addresses "mail@example.com" :subject "Office 
closed" "The office is close on Saturnday and Sunday.";
     stop;
}


Saved Queries