On Tue, Feb 24, 2004 at 09:04:50PM +0000, Mark London wrote:
...
> That would match foo or bar anywhere in the message. I want to test for foo
> followed by bar, and no other words in between, but empty lines are ok.
From a discussion about 'unlimited patterns' like 'word1.*word2'
I seem to remember, that spamassassin reads the whole body
as if it is a complete long line. So what you *then* would
need ist just 'foo\s{1,N}bar' (replace the 'N' with the
*number* of spaces/newlines you want to allow, but better
NOT make it 'infinitely long').
This should then trigger on 'foo' followed by whitespace up
to the limit followed by 'bar'.
If it does NOT work (I did not test it yet) you could also
try 'foo[\s\n]{1,N}bar' explicitely allowing the newline.
Hope this helps, Stucki
--
Christoph von Stuckrad * * |nickname |<stucki@math.fu-berlin.de>\
Freie Universitaet Berlin |/_*|'stucki' |Tel(days):+49 30 838-75 459|
Fachbereich Mathematik, EDV|\ *|if online|Tel(else):+49 30 77 39 6600|
Arnimallee 2-6/14195 Berlin* * |on IRCnet|Fax(alle):+49 30 838-75454/