[RCD] adding transparent managesieve-vacation tests

Lorenzo Petracchi lorenzo.petracchi at unifi.it
Wed Aug 13 09:27:41 CEST 2014


Let managesieve-vacation plugin insert default tests in every users sieve
script, without the users see them on UI? Or do I need to modify the code
for this?

default tests to insert:
if allof (not exists
["list-help","list-unsubscribe","list-subscribe","list-owner","list-post","l
ist-archive","list-id","Mailing-List"], not header :is "Precedence"
["list","bulk","junk"], not header :matches "To" "Multiple recipients of*")

so I need to have something like this:

require ["vacation"];
# rule:[Vacanze]
if allof (not exists
["list-help","list-unsubscribe","list-subscribe","list-owner","list-post","l
ist-archive","list-id","Mailing-List"], not header :is "Precedence"
["list","bulk","junk"], not header :matches "To" "Multiple recipients of*")
{
    vacation :days 7 :addresses
["roundcube-test a unifi.it","rc-test a unifi.it"] :subject "assenza" text:
-- risposta automatica --

Sono assente. ciao
.
;
}



More information about the dev mailing list