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.
Second, your patterns will match "X-Spam-Flag:.*YES" in the middle
of a line. use /^X-Spam.../ instead.
Wietse