Andy Howell wrote:
Running sieve-test, I get:
- store message in folder: antlr-interest-bounces@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 Bosch stephan@rename-it.nl