doručenky/global.sieve
changeset 21 a5c8edf14f82
parent 20 2a00ee0b740a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/doručenky/global.sieve	Wed Nov 30 15:44:34 2011 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +# Kompilace:
     1.5 +# sievec global.sieve
     1.6 +
     1.7 +require ["fileinto"];
     1.8 +
     1.9 +# rule:[doručenky]
    1.10 +if allof (
    1.11 +		not exists "X-DSN-Pridej-References",
    1.12 +		header :contains "Content-Type" "report-type=delivery-status;"
    1.13 +	)
    1.14 +{
    1.15 +	redirect "dorucenky@example.com";
    1.16 +	stop;
    1.17 +}
    1.18 +elsif anyof (
    1.19 +		header :contains "Content-Type" "report-type=disposition-notification;",
    1.20 +		header :contains "Content-Type" "report-type=delivery-status;"
    1.21 +	)
    1.22 +{
    1.23 +	fileinto "Sent";
    1.24 +}