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 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
You are NOT READING my reply. The "if !/X-Spam-Level/"
always succeeds for headers with /X-Spam-Flag/
Wietse
Sorry, i was READING, but not UNDERSTANDING i fear :)
and i'm still not understanding. do you say that FIRST the
body of the if-clause (/X-Spam-Flag/) is evaluated and if that matches,
THEN the /X-Spam-Level:/ is evaluated?
maybe you can answer this also: does HOLD take precedence over DISCARD?`
is the precedence of results of table lookups described somewhere?
or does it depend on the order of lines in the pcre table an the forst
non-OK/DUNNO outcome is respected?
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