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 against the patterns between if
and
endif, if and only if THAT SAME INPUT STRING also matches pat-
tern. The if..endif can nest.
In other words, "/X-Spam-Flag:.*YES/ HOLD" executes always.
Hmm, i have a ! before the if-pattern.
if !/pattern/flags
endif Match the input string against the patterns between
if and
endif, if and only if that same input string does not
match pat-
tern. The if..endif can nest.
I read that like this:
/X-Spam-Flag:.*YES/ HOLD
is only executed if
/X-Spam-Level:.*\*{7,}/
DOS NOT MATCH - correct?
Second, your patterns will match "X-Spam-Flag:.*YES" in the middle
of a line. use /^X-Spam.../ instead.
Wietse
OK, will do that.
Jürgen
--
XLhost.de ® - Webhosting von supersmall bis eXtra Large <<
XLhost.de GmbH
Jürgen Herrmann, Geschäftsführer
Boelckestrasse 21, 93051 Regensburg, Germany
Geschäftsführer: Jürgen Herrmann
Registriert unter: HRB9918
Umsatzsteuer-Identifikationsnummer: DE245931218
Fon: +49 (0)800 XLHOSTDE [0800 95467833]
Fax: +49 (0)800 95467830
Web: http://www.XLhost.de