Scott wrote:

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)/))

Scratch those two above. The following line seems to have nailed both instances:


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

That matches ANYTHING followed by either .name .sport .ltd .med followed by ANYTHING. Just posting so it finds its way into the archives for future searches.

-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