[Dovecot] SIEVE resources ?
Hi,
Do you any good SIEVE resources for a poor beginnner ? I'd to translate some of my current procmail rules into 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.
Any recomendation ?
Thank you
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; }
...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
:2008-12-14T18:16:mouss:
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.
IIRC it is but not yet implemented.
Andraž "ruskie" Levstik Source Mage GNU/Linux Games grimoire guru Geek/Hacker/Tinker
Be sure brain is in gear before engaging mouth. Quis custodiet ipsos custodies. Ryle hira.
Key id = F4C1F89C Key fingerprint = 6FF2 8F20 4C9D DB36 B5B6 F134 884D 72CC F4C1 F89C
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFJRUS2iE1yzPTB+JwRAiGtAKDYcaplOlencWLXGwfaWgURtS6A5wCfZ7TT M4GdtIcYmjUQikoBTFzvNdU= =QTwS -----END PGP SIGNATURE-----
On Dec 14, 2008, at 7:38 PM, Andraž 'ruskie' Levstik wrote:
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.IIRC it is but not yet implemented.
Variables extension is implemented in dovecot-sieve for v1.2, but not
in cmusieve.
participants (4)
-
Andraž 'ruskie' Levstik
-
mouss
-
Timo Sirainen
-
Xavier Maillard