doručenky/global.sieve
author František Kučera <franta-hg@frantovo.cz>
Mon Mar 10 12:21:02 2014 +0100 (2014-03-10)
changeset 27 60cfdaa89b3a
parent 20 2a00ee0b740a
permissions -rw-r--r--
hgignore
     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 }