Burckhard Schmidt
2011-Apr-20 12:15 UTC
[Dovecot] sieve-test ignores precedence and other for vacation
Hello, I'm using pigeonhole-0.2.3, it works fine. I tried to verify some build in checks of vacation concerning precedence or auto-submitted header lines. It looks like sieve-test ignores header lines like Auto-Submitted: auto-submitted Precedence: bulk Return-Path: MAILER-DAEMON at ... if I have a vacation script like require ["vacation", "regex", "fileinto", "variables", "envelope"]; if allof (header :regex ["to"] ["address1", "address2"], header :matches "to" "*") { vacation :days 7 : ... "text"; } The email to test contains a line like Precedence: bulk or Return-Path: <MAILER-DAEMON at ...> or Auto-Submitted: yes sieve-test -D -C script.sieve mail I get Performed actions: * send vacation message: => seconds : 604800 ... text of vacation message END MESSAGE Implicit keep: * store message in folder: INBOX sieve-test(root): Info: final result: success -- Regards --- Burckhard Schmidt
Stephan Bosch
2011-Apr-20 13:08 UTC
[Dovecot] sieve-test ignores precedence and other for vacation
Op 20-4-2011 14:15, Burckhard Schmidt schreef:> Hello, > I'm using pigeonhole-0.2.3, it works fine. > > I tried to verify some build in checks of vacation concerning > precedence or auto-submitted header lines. > It looks like sieve-test ignores header lines likeHmm, good point. Those verifications are not performed in test mode, which is a bit unexpected I presume. Adding the -e argument would show something like this: sieve-test(stephan): Info: checked duplicate for user stephan. info: msgid=unspecified: discarding vacation response to precedence=bulk message from <stephan at rename-it.nl>. info: msgid=unspecified: stored mail into mailbox 'INBOX'. sieve-test(stephan): Info: final result: success Will fix this for the next release. Regards, Stephan.