Re: pcre problem

2014-06-20 Thread li...@rhsoft.net
Am 20.06.2014 10:52, schrieb Jürgen Herrmann: > Am 18.06.2014 16:24, schrieb li...@rhsoft.net: >> Am 18.06.2014 16:17, schrieb Jürgen Herrmann: >>> Am 18.06.2014 15:59, schrieb li...@rhsoft.net: Am 18.06.2014 15:49, schrieb Jürgen Herrmann: > I have a problem with the following pcre table

Re: pcre problem

2014-06-20 Thread Jürgen Herrmann
Am 18.06.2014 16:24, schrieb li...@rhsoft.net: Am 18.06.2014 16:17, schrieb Jürgen Herrmann: Am 18.06.2014 15:59, schrieb li...@rhsoft.net: Am 18.06.2014 15:49, schrieb Jürgen Herrmann: I have a problem with the following pcre table: if !/X-Spam-Level:.*\*{7,}/ /X-Spam-Flag:.*YES/ HOLD endif

Re: pcre problem

2014-06-18 Thread Jürgen Herrmann
Am 18.06.2014 16:19, schrieb wie...@porcupine.org: J?rgen Herrmann: I have a problem with the following pcre table: if !/X-Spam-Level:.*\*{7,}/ /X-Spam-Flag:.*YES/ HOLD endif Wietse: > As documented in pcre_table(5) and other places: > > if /pattern/flags > > endif Match the input st

Re: pcre problem

2014-06-18 Thread Wietse Venema
J?rgen Herrmann: > Am 18.06.2014 16:19, schrieb wie...@porcupine.org: > > J?rgen Herrmann: > >> I have a problem with the following pcre table: > >> > >> if !/X-Spam-Level:.*\*{7,}/ > >> /X-Spam-Flag:.*YES/ HOLD > >> endif As documented, this processes input one line at a time. As documented, ac

Re: pcre problem

2014-06-18 Thread li...@rhsoft.net
Am 18.06.2014 16:17, schrieb Jürgen Herrmann: > Am 18.06.2014 15:59, schrieb li...@rhsoft.net: >> Am 18.06.2014 15:49, schrieb Jürgen Herrmann: >>> I have a problem with the following pcre table: >>> >>> if !/X-Spam-Level:.*\*{7,}/ >>> /X-Spam-Flag:.*YES/ HOLD >>> endif >>> /X-Spam-Level:.*\*{7,}

Re: pcre problem

2014-06-18 Thread Wietse Venema
J?rgen Herrmann: > I have a problem with the following pcre table: > > if !/X-Spam-Level:.*\*{7,}/ > /X-Spam-Flag:.*YES/ HOLD > endif Wietse: > > As documented in pcre_table(5) and other places: > > > > if /pattern/flags > > > > endif Match the input string against the patterns betw

Re: pcre problem

2014-06-18 Thread Jürgen Herrmann
Am 18.06.2014 15:59, schrieb li...@rhsoft.net: Am 18.06.2014 15:49, schrieb Jürgen Herrmann: I have a problem with the following pcre table: if !/X-Spam-Level:.*\*{7,}/ /X-Spam-Flag:.*YES/ HOLD endif /X-Spam-Level:.*\*{7,}/ DISCARD the HOLD part of it is executed. the DISCARD part never matche

Re: pcre problem

2014-06-18 Thread Jürgen Herrmann
Am 18.06.2014 15:58, schrieb wie...@porcupine.org: J?rgen Herrmann: Hi there! I have a problem with the following pcre table: if !/X-Spam-Level:.*\*{7,}/ /X-Spam-Flag:.*YES/ HOLD endif As documented in pcre_table(5) and other places: if /pattern/flags endif Match the input string

Re: pcre problem

2014-06-18 Thread li...@rhsoft.net
Am 18.06.2014 15:49, schrieb Jürgen Herrmann: > I have a problem with the following pcre table: > > if !/X-Spam-Level:.*\*{7,}/ > /X-Spam-Flag:.*YES/ HOLD > endif > /X-Spam-Level:.*\*{7,}/ DISCARD > > the HOLD part of it is executed. the DISCARD part never matches. > > I also had a version with

Re: pcre problem

2014-06-18 Thread Wietse Venema
J?rgen Herrmann: > Hi there! > > I have a problem with the following pcre table: > > if !/X-Spam-Level:.*\*{7,}/ > /X-Spam-Flag:.*YES/ HOLD > endif As documented in pcre_table(5) and other places: if /pattern/flags endif Match the input string against the patterns between if and

pcre problem

2014-06-18 Thread Jürgen Herrmann
Hi there! I have a problem with the following pcre table: if !/X-Spam-Level:.*\*{7,}/ /X-Spam-Flag:.*YES/ HOLD endif /X-Spam-Level:.*\*{7,}/ DISCARD the HOLD part of it is executed. the DISCARD part never matches. I also had a version with /X-Spam-Level: \*{7,}/ instead of /X-Spam-Level:.*\*{7