I have some quick questions re use of mail filtering (sieve rules) in ISPConfig. 1) How is multiple sieve conditions handled in ISPConfig? eg: Can I use a '|' or some other condition to have two strings that will met the conditions I want? Eg: I'm wanting to sieve emails server-side where the subject contains 'Report Domain" or "Report domain" (note the case difference), so they are moved them into another folder. The below is from the sieve manual that shows it's just another line under the same 'header' section. Does ISPConfig combine them or can a single Subject contains rule in ISPConfig also have an OR condition? Code: if anyof ( header :contains "subject" "alert", header :contains "subject" "warning" ) { fileinto "Alerts"; } 2) Does the destination folder need the prefix .INBOX.Domain_Reports vs just what is shown in the IMAP client (Domain_Reports), and the assumption is the root location is Maildir and not the parent directory, is this correct? This is what the current mailbox filter looks like (although I don't think it's working) and I was wanting to save having to add a second and no doubt a third and fourth... as sometimes domain reports will have slightly different headers. Code: Email filter Filter Name: Move -> SUB: Report domain -> 9_Domain_Reports Source: Subject Contains Report domain (here I want to add an OR condition to include 'Report Domain' too for rule brevity) Action: Move to Domain_Reports Active: <ticked> 3) For spaces, is escaping needed such as using '\' prior to spaces, and encasement within slashes or quotes or something else in the ISPConfig text field (note the sieve rules are encased within double-quotes)?
FYI: Found out through trial and error that no escaping is needed in the ' Contains' field, and that the destination must be the full path from the Maildir/ directory: Code: Email filter Filter Name: Move -> SUB: Report domain -> 9_Domain_Reports Source: Subject Contains Report domain (here I want to add an OR condition to include 'Report Domain' too for rule brevity) Action: Move to .INBOX.Domain_Reports Active: <ticked> Note: However ISPConfig removes the leading '.' in the 'Move to' text-box which is not needed by sieve.