[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@...
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@...> 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
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 like
Hmm, 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@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.
participants (2)
-
Burckhard Schmidt
-
Stephan Bosch