Re: Regex in sieve broken in 2.4?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxx tmp# sievec phpscript.script phpscript.bc
>     root@xxxxxxxxxxxxxxxxx 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.
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/



[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux