[Dovecot] Sieve regex match problem

Andy Howell AndyHowell at austin.rr.com
Thu Jan 22 06:09:57 EET 2009


Stephan Bosch wrote:
> Andy Howell wrote:
>>
>> Running sieve-test, I get:
>>
>>  * store message in folder: antlr-interest-bounces at 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. This would be an extension only provided by the sieve-test tool 
> to provide such functionality more cleanly. This will print the values 
> instantly in stead of waiting until the Sieve result is printed.
> 
>> Without the first group of the regex '(.*>[ \\t]*,?[ \\t]*)?', it 
>> works correctly. That group isn't getting matched anyway, so it 
>> shouldn't matter.
>>
>> This is with 1.2alpha5.
>>
>> What am I missing?
> Nothing, this is a bug. If a non-matched match value is encountered, the 
> indexes of the match values after that are mangled.
> 
> Fixed:
> 
> http://hg.rename-it.nl/dovecot-libsieve/rev/de6db6757418
> 
> As it turns out, I forgot to add the :regex match value handling to the 
> test suite. I've now added a couple of simple tests based on your example.
> 
> Regards,
> 

Stephan,

	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?

Regards,

	Andy




More information about the dovecot mailing list