doručenky/global.sieve
author František Kučera <franta-hg@frantovo.cz>
Mon, 10 Mar 2014 12:21:02 +0100
changeset 27 60cfdaa89b3a
parent 21 a5c8edf14f82
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 }