Xavier Maillard a écrit :
Hi,
Do you any good SIEVE resources for a poor beginnner ? I'd to translate some of my current procmail rules into SIEVE.
http://www.fastmail.fm/docs/sieve/
I have, for example, a "generic" rule that is able to sort almost any message from/to a mailing-list into a dedicated folder -i.e one rule for almost all my lists.
AFAIK, It is not possible to use a "generic" rule with sieve (there is no variable expansion), but you can use a script to generate sieve rules. see example below.
################ example require "fileinto";
if header :contains "List-Id" "
if header :contains "List-Id" "
if header :contains "List-Id" "
...
# Unfortunately, some lists don't have a List-Id if header :contains "Sender" "owner-postfix-users@postfix.org" { fileinto "List.mail.postfix-users"; stop; }
...
if header :contains "List-Owner" "mailto:SPAM-L-request@PEACH.EASE.LSOFT.COM" { fileinto "List.mail.spam-l"; stop; }
...
if header :contains "List-Post" "mailto:users@phishtank.com" { fileinto "List.dnsbl.phishtank"; stop; }
...
if header :contains "List-Post" "mailto:secureshell@securityfocus.com" { fileinto "List.secu.secureshell"; stop; }
...