On 23.01.2009 07:59 David Anderson wrote:
On Thursday 22 January 2009, Pascal Volk wrote:
On 22.01.2009 20:42 David Anderson wrote:
Upon upgrading Dovecot from 1.1.7 to 1.1.8, one of my sieve filters (generated with avelsieve) no longer works. Please show the filter rule.
Thanks for the reply. Here it is (with vacation message and personal info changed):
require ["fileinto","envelope","reject","vacation","imapflags","relational","comparator-i;ascii-numeric","notify"]; if allof (not header :contains "Subject" "Re:", not header :contains "From" "support@example.com") { vacation :days 1 :addresses ["support@example.com"] text: Blah blah blah (snipped) . ; stop; }
if header :contains "From" "@example.com" { keep; redirect "sysadmin@example.com"; }
I've tested your sieve script. Here it works:
From: support@example.com; Subject: Test; MID: mail_0001@example.com: deliver(user@test.tld): msgid=mail_0001@example.com: saved mail to INBOX deliver(user@test.tld): Sending a forward to sysadmin@example.com with return path <support@example.com>
From: support@example.com; Subj: Re: Test; MID: mail_0001_RE@example.com: deliver(user@test.tld): msgid=mail_0001_RE@example.com: saved mail to INBOX deliver(user@test.tld): Sending a forward to sysadmin@example.com with return path <support@example.com>
From: support@example.com; Subject: What means Re:?; MID: mail_0001_What_means_RE@example.com: deliver(user@test.tld): msgid=mail_0001_What_means_RE@example.com: saved mail to INBOX deliver(user@test.tld): Sending a forward to sysadmin@example.com with return path <support@example.com>
From: john.doe@example.com; Subject: Test; MID: 0003_john.doe@example.com: deliver(user@test.tld): msgid=0003_john.doe@example.com: sent vacation response to <"john.doe"@example.com> deliver(user@test.tld): msgid=0003_john.doe@example.com: saved mail to INBOX
From: john.doe@example.com; Subject: Re: Test; MID: 0004_RE.john.doe@example.com: deliver(user@test.tld): msgid=0004_RE.john.doe@example.com: saved mail to INBOX deliver(user@test.tld): Sending a forward to sysadmin@example.com with return path <john.doe@example.com>
Please add "mail_debug = yes" to your protocol lda {...} section and see what deliver will log.
Regards, Pascal
Ubuntu is an ancient African word meaning “I can’t install Debian.” -- unknown