Re: [Dovecot] sieve rules processing

2009-08-06 Thread Stephan Bosch
pod wrote: Note that the anyof() commands are only necessary when you have multiple tests per if command. Also, I removed the envelope require, since it is not used. Out of interest is the conditional around if true { redirect :copy "al...@domain.com"; } necessary? Does a

Re: [Dovecot] sieve rules processing

2009-08-06 Thread pod
Stephan Bosch writes: > Yes, your second rule is an elsif, meaning that it is only executed when > the first if-condition is not 'true'. Since that first rule has a forced > true' result, the second rule is absolutely never executed. You script > should be: > > require ["fileinto","copy"]; > > #

Re: [Dovecot] sieve rules processing

2009-07-30 Thread Nikita Koshikov
On Thu, 30 Jul 2009 10:38:51 +0200 Stephan Bosch wrote: > Nikita Koshikov schreef: > > On Thu, 30 Jul 2009 01:29:26 +0200 > > Stephan Bosch wrote: > >> I am not exactly sure what you mean. Why are you providing an explicit > >> keep command when you want to sort the message further? > > Withou

Re: [Dovecot] sieve rules processing

2009-07-30 Thread Nikita Koshikov
On Thu, 30 Jul 2009 10:32:20 +0200 Tom Hendrikx wrote: > You are using a if/elseif/else statement. When the if clause (which is > always true) is matched, the stuff in the elsif/else clauses is discarded. > > You'll need to use 2 separate if statements to make this work. > Thank you for explana

Re: [Dovecot] sieve rules processing

2009-07-30 Thread Stephan Bosch
Nikita Koshikov schreef: On Thu, 30 Jul 2009 01:29:26 +0200 Stephan Bosch wrote: I am not exactly sure what you mean. Why are you providing an explicit keep command when you want to sort the message further? Without keep action - mail just redirected to specified mailbox, but it doesn't stor

Re: [Dovecot] sieve rules processing

2009-07-30 Thread Tom Hendrikx
Nikita Koshikov schreef: >> > This is my current rule list: > > require ["fileinto","envelope","copy"]; > # rule:[redirect] > if anyof (true) > { > redirect :copy "al...@domain.com"; > } > # rule:[Cron] > elsif anyof (header :contains "Subject" "Cron") > { > fileinto "INBOX/Cron"; > } >

Re: [Dovecot] sieve rules processing

2009-07-30 Thread Nikita Koshikov
On Thu, 30 Jul 2009 01:29:26 +0200 Stephan Bosch wrote: Thanks for your reply, Stephan. > I am not exactly sure what you mean. Why are you providing an explicit > keep command when you want to sort the message further? I would think > the following example script does what you need: > Without

Re: [Dovecot] sieve rules processing

2009-07-29 Thread Stephan Bosch
Nikita Koshikov schreef: Hello list, My question: is sieve support some kind of "continue" action, to explicit tell server processing rules below current one(if current has triged)? Situation: I have few rules, which fileinto's to different directories. All is working fine, but if I want redi

[Dovecot] sieve rules processing

2009-07-29 Thread Nikita Koshikov
Hello list, My question: is sieve support some kind of "continue" action, to explicit tell server processing rules below current one(if current has triged)? Situation: I have few rules, which fileinto's to different directories. All is working fine, but if I want redirect all my mail for some p