Re: [Dovecot] Sieve & Regex

2009-05-12 Thread Peregrino "Pipino" Tuc
Any hint? Il giorno lun, 11/05/2009 alle 16.40 +0200, Peregrino "Pipino" Tuc ha scritto: > Hi all > I'm trying to create a new sieve rule. > > What I would like to do is catch "From" addresses that > are equal to the rightpart (hostname) of a message-id. > > For example: > > Message-ID: <000d01

[Dovecot] Sieve & Regex

2009-05-11 Thread Peregrino "Pipino" Tuc
Hi all I'm trying to create a new sieve rule. What I would like to do is catch "From" addresses that are equal to the rightpart (hostname) of a message-id. For example: Message-ID: <000d01c9d23a$941a7db0$6400a...@upwabm> From: "Leanne Crabtree" I would like to catch this mail, because it has "

Re: [Dovecot] Sieve regex match problem

2009-01-22 Thread Stephan Bosch
Andy Howell wrote: Glad you like my creative use is 'fileinto. Thanks for the quick fix. Are there plans to make another release of 1.2 any time soon? Current code depends on unreleased changes in the Dovecot v1.2 tree. So, this will need to wait until Timo makes a new release. Regards, -

Re: [Dovecot] Sieve regex match problem

2009-01-21 Thread Andy Howell
Stephan Bosch wrote: Andy Howell wrote: Running sieve-test, I get: * store message in folder: antlr-interest-boun...@antlr.org :: 1: 2:antlr 3: 4:interest 5: 6:-bounces 7: Interesting use of the fileinto extension. ;) I'd better define a vnd.dovecot.debug extension to provide some sort of d

Re: [Dovecot] Sieve regex match problem

2009-01-21 Thread Stephan Bosch
Andy Howell wrote: Running sieve-test, I get: * store message in folder: antlr-interest-boun...@antlr.org :: 1: 2:antlr 3: 4:interest 5: 6:-bounces 7: Interesting use of the fileinto extension. ;) I'd better define a vnd.dovecot.debug extension to provide some sort of debug printing command

[Dovecot] Sieve regex match problem

2009-01-21 Thread Andy Howell
I'm trying to make a regex to match common mailing list addresses and file messages to corresponding folders. I'm using sieve-test to try and understand what is happening. The sieve script is: require [ "fileinto", "regex", "variables" ]; if header :regex ["Sender"] ["(.*>[ \\t]*,?[ \\t]*)

Re: [Dovecot] sieve :regex problem

2008-07-07 Thread Anders
Václav Hùla wrote: >I have dovecot 1.1.1 with dovecot-sieve-1.1.5 and managesieve 0.10.3. > Everything is working, with exeption of this filter: > > if header :comparator "i;ascii-casemap" :regex "X-Spam-Score" > ".*\+\+\+\+" { > fileinto "Spamq"; > stop; > } I think that you need

[Dovecot] sieve :regex problem

2008-07-07 Thread Václav Hůla
Hello, I have dovecot 1.1.1 with dovecot-sieve-1.1.5 and managesieve 0.10.3. Everything is working, with exeption of this filter: if header :comparator "i;ascii-casemap" :regex "X-Spam-Score" ".*\+\+\+\+" { fileinto "Spamq"; stop; } Which I think should match only messages with ++

Re: [Dovecot] Sieve regex never matches

2007-11-26 Thread Frank Kintrup
Hi Timo, >> Both scripts compile fine, but their regex never match. Has anyone >> an idea why? I'm using Dovecot 1.0.0 on Debian Etch stable. > > So I guess you also use Debian-compiled Sieve plugin? It's possible that > it doesn't have regex support compiled in. I'm not sure if it gives any > er

Re: [Dovecot] Sieve regex never matches

2007-11-26 Thread Timo Sirainen
On Sun, 2007-11-25 at 00:01 +0100, [EMAIL PROTECTED] wrote: > Both scripts compile fine, but their regex never match. Has anyone > an idea why? I'm using Dovecot 1.0.0 on Debian Etch stable. So I guess you also use Debian-compiled Sieve plugin? It's possible that it doesn't have regex support comp

[Dovecot] Sieve regex never matches

2007-11-24 Thread frank.kintrup
Hi, I found the following code on the net which should redirect all mails to another address depending on the time of day (useful for forwarding mails to work): require ["regex"]; if allof (header :regex "date" "(08|09|10|11|12|13|14|15|16|17):..:..", not header :regex "date" "(sat|s