Regex in sieve broken in 2.4?
Bron Gondwana
brong at fastmail.fm
Wed Apr 13 17:05:42 EDT 2011
On Wed, Apr 13, 2011 at 07:03:17PM +0200, Øyvind Kolbu wrote:
> We recently upgraded a few of our imap servers to 2.4.8beta1 from 2.3.16
> and found that sieve filters with regex are broken. The filtering rule is
> ignored and the message delivered to INBOX, so at least not gone.
>
> Example filter:
>
> require ["fileinto","regex"];
>
> if
> header :regex :comparator "i;ascii-casemap" "X-UiO-Spam-score" "s{3,}"
> { fileinto "INBOX.spam"; stop; }
>
> This fails to compile on 2.4.8:
> root at mail-utv2.uio.no tmp# sievec phpscript.script phpscript.bc
> Unable to parse script: script errors:
> line 4: bad argument at offset 0
> while on 2.3.16 this is no problem:
> root at mail-imap2.uio.no tmp# sievec phpscript.script phpscript.bc
> root at mail-imap2.uio.no tmp#
>
> The filter is generated using the avelsieve plugin in Squrrielmail. Neither
> of them have defined the option sieve_extensions in imapd.conf.
>
> ./configure reported that it found pcre headers:
> checking pcreposix.h usability... yes
> checking pcreposix.h presence... yes
> checking for pcreposix.h... yes
> checking for utf8 enabled pcre... yes
>
> and sievec and other binaries are linked with libpcre.
>
> Any ideas?
Please file a bug :) 2.4.8 has added a pile of charset changes,
and it is possible that I've broken something.
Bron.
More information about the Info-cyrus
mailing list