procmail
[Top] [All Lists]

Re: Killing countries by email

2000-01-06 11:39:35
Can someone explain in a little further detail what the purpose of this
part of the country blocker does?

        :0
        * ^Received:.*\.\/(cn|nl|jp)[^  ][      ]
        * MATCH ?? ^^\/[a-z]+   

I understand it until the part where it looks like we're trying to not
match 2 blank spaces, but we do want to match 6 blanks?  What purpose 
does that serve?  Why couldn't you just use: 

        * ^Received:.*\.\/(cn|nl|jp)

I'm also confused about the next line.  We seemingly already have the 
2-letter country designation in $MATCH at this point, so doesn't that 
get blown away by the next expression?  Namely: ^^\/[a-z]+

And I don't understand what that comparison is checking for.  You're
matching at the beginning of the expression (which is $MATCH) and
splitting it into 2 halves, the second of which must match [a-z]+ and
whose result ends up replacing what's in the $MATCH variable.

I've read through the procmailex and procmailrc manpages and I'm still
confused.

Thanks for any help,
Shane
-- 
-------------------------------------------------------------------------
Shane M. Fisher
Student Intern, Administrative Computing Services,
Western Washington University
EMail: fishers(_at_)admcs(_dot_)wwu(_dot_)edu Ext:3362
-------------------------------------------------------------------------



<Prev in Thread] Current Thread [Next in Thread>