Sam Varshavchik wrote:

Scott writes:

Scott wrote:

Specifically, I'm looking for something with real examples that make use of
tricky syntax.


Since apparently there isn't much documentation available for this, maybe someone can help me make a filter. I'm trying to create a single filter for all emails with the words .sport and .ltd in the subject header. Something like (which I know is wrong because it doesn't work):

if ((/^Subject:.*\.sport || .ltd /))


if ((/^Subject:.*\.(sport|ltd)[^:alpha:]/))

Thank you Sam. That did the trick. I added the following two rules to get .ltd and .sport at all points in the subject (works according to my tests).

if ((/^subject:.*(sport|ltd)[^:alpha:]/))
if ((/^Subject:.*[^:alpha:](sport|ltd)/))

Back to my original question: if I wanted to learn more about the regexp
syntax that maildrop filters use, what subject would I look for?  Perl?

-Scott





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to