procmail
[Top] [All Lists]

(Parenthesis) /slash |pipe confusion

2002-07-09 07:06:15
I have copied the following recipe from the news group.

I am confused by a few things. I have tried to read to find the answers but its 
a little confusing for me. The word wrap is a little off I have tried to adjust 
it to make it clear.

I understand a lot of what is here but what I'm confused at is 
some of the relationships between some of the syntax. 

1. I'm confused by what (....lingerie (adult|nude|live).. does.
or more to the point what strings this would find. I have tried a variety but 
it doesnt seem to work.

2. Simimarly, (streaming\|) is the \ there to un clasify the | 
so that it finds "streaming|" ?

3. When you get two brackets what happens. (streaming\|)(video|feed)
Im sure people will point me to a web site that talks all about brackets but 
while I can find lots of info on |, ^ [] very little on
 (). In this case, and indeed in this whole recipe how do (...)(...)
react to each other.

4. Finally (...live\ *(show|...)(..) I dont understand why someone would use * 
. This is a global as long as you dont use \<word>\ shouldn't procmail find any 
combination of substrings into strings.
eg "get-the-word-out" "Wordperfect".

One of the hard lessons I have learned from reading David W. Tamkins
email in the archives is the concept of over lapping words. When whole word 
\<... >\ recipes are used. That helped a lot!!

:0:
* -250^0
* Subject:\/.+$
* 100^1 MATCH ?? (\<sex|\<xxx\>|porn|\<gay\>|erotic|orgy|\<hiv\>|\<aids\>|\
        viagra|sperm|\<jiz|\<jism|\<cum\>|orgasm|lesbian|\
cum *shot|get it\ up|sex\ drive|lingerie (adult|nude|live) \ 
(streaming\|)(video|feed)|live\ *(show|chat|\
 sex|get\off|adult|date)\
 (line|site)|over\ *21|adults\ *only |phone\ *sex)
${TESTDIR}/Proctest.mail




_____________________________________________________
Supercharge your e-mail with a 25MB Inbox, POP3 Access, No Ads
and NoTaglines --> LYCOS MAIL PLUS.
http://www.mail.lycos.com/brandPage.shtml?pageId=plus 
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • (Parenthesis) /slash |pipe confusion, S Semple <=