[Dovecot] How to do line breaks in sieve scripts?

Heiko Hund heiko at ist.eigentlich.net
Wed Aug 13 13:31:26 EEST 2008


CJ, Sephan,

On Friday 08 August 2008 16:37:11 CJ Keist wrote:
>    Thank you, didn't realize how buggy the libphp-sieve was.  It does
> compile fine with sievec.

Fixed the issue last night. If you find other bugs, please let me know through 
the bug-tracker in the future. I rely on feedback to get the last ones out. 
So, if anyone is fancy to check your script and run into something, let me 
know.

> Stephan Bosch wrote:
> > Actually, the libsieve-php is wrong.
> >
> > From RFC 5228 Section 8.1 (http://tools.ietf.org/html/rfc5228):
> >
> >  quoted-safe        = CRLF / octet-not-qspecial
> >                           ; either a CRLF pair, OR a single octet other
> >                           ; than NUL, CR, LF, double-quote, or backslash
> >  quoted-text        = *(quoted-safe / quoted-special / quoted-other)
> >  quoted-string      = DQUOTE quoted-text DQUOTE
> >
> > So, presuming that the lines end in CRLF and not just LF (on this part
> > the RFC is too strict in my opinion), your script is valid (I verified).

The line breaks were not the problem. Instead I used the wrong pattern 
modifier so that multiline quoted strings never matched. Classic one-liner 
fix.

Regards
Heiko


More information about the dovecot mailing list