doručenky/global.sieve
author František Kučera <franta-hg@frantovo.cz>
Sat, 08 Mar 2014 16:17:03 +0100
changeset 25 80e56bfc227e
parent 21 a5c8edf14f82
permissions -rw-r--r--
ldap2sql – kopírování globálního adresáře (GAL) do SQL, vytvořen projekt v Netbeans
     1 # Kompilace:
     2 # sievec global.sieve
     3 
     4 require ["fileinto"];
     5 
     6 # rule:[doručenky]
     7 if allof (
     8 		not exists "X-DSN-Pridej-References",
     9 		header :contains "Content-Type" "report-type=delivery-status;"
    10 	)
    11 {
    12 	redirect "dorucenky@example.com";
    13 	stop;
    14 }
    15 elsif anyof (
    16 		header :contains "Content-Type" "report-type=disposition-notification;",
    17 		header :contains "Content-Type" "report-type=delivery-status;"
    18 	)
    19 {
    20 	fileinto "Sent";
    21 }