* This is the modus mailing list *

No, it is going to look for one or the other.

When the two are separated by comma the way you have them, it is a one
or the other not both.

Both would look like this:
if allof (
body :matches["text/plain","text/html"] "* Viagra*",
body :matches["text/plain","text/html"] "*click.com*"
)       { discard; stop; }

Both directives must match

Your example from \patterns\known05\strong is a shorter version of this:

if anyof (
body :matches["text/plain","text/html"] "* Viagra*",
body :matches["text/plain","text/html"] "*click.com*"
)       { discard; stop; }

which means that only one of the directives must match.

John

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Turner, Peter
Sent: Friday, November 07, 2003 3:36 PM
To: [EMAIL PROTECTED]
Subject: [Modus] Sieve syntax question

* This is the modus mailing list *

Apparently I don't quite get the sieve syntax.  As I read it this line
from (v2)

# Filter Name...: \patterns\known05\strong (line 280)
if body :matches["text/plain","text/html"]["* Viagra*","*click.com*"] {
discard; stop; }

it should look for [space]Viagra[anything] AND
[anything]click.com[anything] in the plain text or html text parts of
the message.

[space]viagra does appear in the message but "click.com" does not.

Below is the first appearance of "click" in the message and it is indeed
followed - but not immediately - by ".com"  Should this have triggered
the filter?

Where do you refer your patients for fitting and purchase of shoes and
inserts? Click here to send me an email 
mailto:[EMAIL PROTECTED]


**
To unsubscribe, send an Email to: [EMAIL PROTECTED]
with the word "UNSUBSCRIBE" in the body or subject line.


**
To unsubscribe, send an Email to: [EMAIL PROTECTED]
with the word "UNSUBSCRIBE" in the body or subject line.

Reply via email to