Pascal Volk
2009-Jan-22 20:56 UTC
[Dovecot] Sieve filters forwarding erratic after upgrade to 1.1.8
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.> The filter is intended to redirect to another address when the header > from contains something like @example.com. However, it simply never > performs the redirection.Here it works: Jan 22 21:49:15 vh3 deliver(user at test.tld): Sending a forward to <user at example.org> with return path <<john.doe at example.com>> Jan 22 21:49:15 vh3 postfix/pickup[13961]: 5C3B165CF: uid=70005 from=<john.doe at example.com> Jan 22 21:49:15 vh3 deliver(user at test.tld): msgid=<6Zd0$2460.john.doe at example.com>: forwarded to <user at example.org> Jan 22 21:49:15 vh3 deliver(user at test.tld): msgid=<6Zd0$2460.john.doe at example.com>: saved mail to INBOX> Tests show that if the filter also has the "keep copy in mailbox as well > as redirecting" open on, then the copy is kept. If that option is off, > then no redirection happens and no copy is kept- i.e. the mail is > simply lost.Works also w/o explicit "keep;"> Deleting and recreating the filter makes no difference, and neither does > moving its order in the list of filters. In the same list of filters a > vacation message works. > On a second mailbox where a filter is redirecting all mail with header > precedence not equal to "list", the redirection always takes place, so > this isn't a generic problem with all redirections. I also updated > avelsieve from 1.9.7 (July 2007) to the latest SVN and this made no > difference. > > I am using the dovecot-1.1.8-0_85.el5 and dovecot-sieve-1.1.5-8.el5 RPMs > from http://atrpms.net.I'm using dovecot-sieve-1.1.6, compiled from source. Regards, Pascal -- Ubuntu is an ancient African word meaning ?I can?t install Debian.? -- unknown
Pascal Volk
2009-Jan-23 15:00 UTC
[Dovecot] Sieve filters forwarding erratic after upgrade to 1.1.8
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 at example.com") > { > vacation :days 1 :addresses ["support at example.com"] text: > Blah blah blah > (snipped) > . > ; > stop; > } > > if header :contains "From" "@example.com" > { > keep; > redirect "sysadmin at example.com"; > } >I've tested your sieve script. Here it works: From: support at example.com; Subject: Test; MID: mail_0001 at example.com: deliver(user at test.tld): msgid=<mail_0001 at example.com>: saved mail to INBOX deliver(user at test.tld): Sending a forward to <sysadmin at example.com> with return path <<support at example.com>> From: support at example.com; Subj: Re: Test; MID: mail_0001_RE at example.com: deliver(user at test.tld): msgid=<mail_0001_RE at example.com>: saved mail to INBOX deliver(user at test.tld): Sending a forward to <sysadmin at example.com> with return path <<support at example.com>> From: support at example.com; Subject: What means Re:?; MID: mail_0001_What_means_RE at example.com: deliver(user at test.tld): msgid=<mail_0001_What_means_RE at example.com>: saved mail to INBOX deliver(user at test.tld): Sending a forward to <sysadmin at example.com> with return path <<support at example.com>> From: john.doe at example.com; Subject: Test; MID: 0003_john.doe at example.com: deliver(user at test.tld): msgid=<0003_john.doe at example.com>: sent vacation response to <"john.doe"@example.com> deliver(user at test.tld): msgid=<0003_john.doe at example.com>: saved mail to INBOX From: john.doe at example.com; Subject: Re: Test; MID: 0004_RE.john.doe at example.com: deliver(user at test.tld): msgid=<0004_RE.john.doe at example.com>: saved mail to INBOX deliver(user at test.tld): Sending a forward to <sysadmin at example.com> with return path <<john.doe at 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
Pascal Volk
2009-Jan-24 18:15 UTC
[Dovecot] Sieve filters forwarding erratic after upgrade to 1.1.8
On 24.01.2009 09:49 David Anderson wrote:> > Thanks for the reply again. Here it is: > ... > Jan 24 08:38:04 levi deliver(support at example.com): msgid=<200901241137.59870.david at example.com>: sent vacation response to <david at example.com> > Jan 24 08:38:04 levi deliver(support at example.com): msgid=<200901241137.59870.david at example.com>: saved mail to INBOXOK, let me guess: This was this part: if allof (not header :contains "Subject" "Re:", not header :contains "From" "support at example.com") { vacation :days 1 :addresses ["support at example.com"] text: Blah blah blah (snipped) . ; stop; ^^^^ After "stop;" the execution of the sieve script is done. What happens if you send an e-mail with the following headers? To: <support at example.com> From: <david at example.com> Subject: whatever Regards, Pascal -- Ubuntu is an ancient African word meaning ?I can?t install Debian.? -- unknown