diff -r 2a00ee0b740a -r a5c8edf14f82 doručenky/global.sieve --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doručenky/global.sieve Wed Nov 30 15:44:34 2011 +0100 @@ -0,0 +1,21 @@ +# Kompilace: +# sievec global.sieve + +require ["fileinto"]; + +# rule:[doručenky] +if allof ( + not exists "X-DSN-Pridej-References", + header :contains "Content-Type" "report-type=delivery-status;" + ) +{ + redirect "dorucenky@example.com"; + stop; +} +elsif anyof ( + header :contains "Content-Type" "report-type=disposition-notification;", + header :contains "Content-Type" "report-type=delivery-status;" + ) +{ + fileinto "Sent"; +}