Re: [Dovecot] Sieve filters forwarding erratic after upgrade to 1.1.8

2009-01-24 Thread Pascal Volk
On 24.01.2009 09:49 David Anderson wrote:
 
 Thanks for the reply again. Here it is:
 ...
 Jan 24 08:38:04 levi deliver(supp...@example.com): 
 msgid=200901241137.59870.da...@example.com: sent vacation response to 
 da...@example.com
 Jan 24 08:38:04 levi deliver(supp...@example.com): 
 msgid=200901241137.59870.da...@example.com: saved mail to INBOX

OK, let me guess: This was this part:
if allof (not header :contains Subject Re:,
not header :contains From supp...@example.com)
{
vacation :days 1 :addresses [supp...@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: supp...@example.com
From: da...@example.com
Subject: whatever


Regards,
Pascal

-- 
Ubuntu is an ancient African word meaning “I can’t install Debian.”
 -- unknown


Re: [Dovecot] Sieve filters forwarding erratic after upgrade to 1.1.8

2009-01-23 Thread Pascal Volk
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 supp...@example.com)
 {
 vacation :days 1 :addresses [supp...@example.com] text:
 Blah blah blah
 (snipped)
 .
 ;
 stop;
 }
 
 if header :contains From @example.com
 {
 keep;
 redirect sysad...@example.com;
 }
 

I've tested your sieve script. Here it works:

From: supp...@example.com; Subject: Test; MID: mail_0...@example.com:
deliver(u...@test.tld): msgid=mail_0...@example.com: saved mail to INBOX
deliver(u...@test.tld): Sending a forward to sysad...@example.com with return 
path supp...@example.com

From: supp...@example.com; Subj: Re: Test; MID: mail_0001...@example.com:
deliver(u...@test.tld): msgid=mail_0001...@example.com: saved mail to INBOX
deliver(u...@test.tld): Sending a forward to sysad...@example.com with return 
path supp...@example.com

From: supp...@example.com; Subject: What means Re:?;
MID: mail_0001_what_means...@example.com:
deliver(u...@test.tld): msgid=mail_0001_what_means...@example.com: saved mail 
to INBOX
deliver(u...@test.tld): Sending a forward to sysad...@example.com with return 
path supp...@example.com

From: john@example.com; Subject: Test;
MID: 0003_john@example.com:
deliver(u...@test.tld): msgid=0003_john@example.com: sent vacation 
response to john.doe@example.com
deliver(u...@test.tld): msgid=0003_john@example.com: saved mail to INBOX

From: john@example.com; Subject: Re: Test;
MID: 0004_re.john@example.com:
deliver(u...@test.tld): msgid=0004_re.john@example.com: saved mail to 
INBOX
deliver(u...@test.tld): Sending a forward to sysad...@example.com with return 
path john@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


Re: [Dovecot] Sieve filters forwarding erratic after upgrade to 1.1.8

2009-01-22 Thread Pascal Volk
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(u...@test.tld): Sending a forward to 
u...@example.org with return path john@example.com
Jan 22 21:49:15 vh3 postfix/pickup[13961]: 5C3B165CF: uid=70005 
from=john@example.com
Jan 22 21:49:15 vh3 deliver(u...@test.tld): 
msgid=6zd0$2460.john@example.com: forwarded to u...@example.org
Jan 22 21:49:15 vh3 deliver(u...@test.tld): 
msgid=6zd0$2460.john@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