procmail
[Top] [All Lists]

Re: Finished: RegEx help with " <

2004-04-09 06:43:54
As it was written on Apr 9, thus Ruud H.G. van Tol typed:

Ruud:  OK, that wil work 98% of the time.

Great!  Im happy to achieve such a high score on my own.  :)

Ruud:
Ruud:
Ruud:  The "! ^(To|Cc):.*sbirl@" will also match "To: anythingsbirl@".
Ruud:  Check procmail's TO and TO_ macros.

Yes, Ive read it before.  I tend to (foolishly?) ignore those headers
addressed by TO and TO_.  I used FROM_DAEMON before and caught more
messages than I wanted to catch.  Didnt want to same thing to happen.

(On the side topic, from previous discussions on this list I thought BCC
was stripped from the headers?  Why try to match it?)


Ruud:  > I tested it against
Ruud:  >    "First Last" <Joe(_dot_)Schmoe(_at_)concept(_dot_)temple(_dot_)edu>
Ruud:  >    <Joe(_dot_)Schmoe(_at_)concept(_dot_)temple(_dot_)edu>
Ruud:  > and received the results I was expecting:
Ruud:  >    +Joe.Schmoe
Ruud:
Ruud:  More tests:
Ruud:  To: Joe(_dot_)Schmoe(_at_)example(_dot_)com
Ruud:  To: "Joe(_dot_)Schmoe(_at_)example(_dot_)com" 
<pete(_at_)example(_dot_)com>

Tested.

Ruud:  To: "Joe(_dot_)Schmoe(_at_)example(_dot_)com" pete(_at_)example(_dot_)com
Ruud:  To: "<Joe(_dot_)Schmoe(_at_)example(_dot_)com>" 
pete(_at_)example(_dot_)com
Ruud:  To: Joe(_dot_)Schmoe(_at_)example(_dot_)com <pete(_at_)example(_dot_)com>
Ruud:  To: "<Joe(_dot_)Schmoe(_at_)example(_dot_)com>" 
<pete(_at_)example(_dot_)com>


Wow.  I was going off of the emails that are sent to me.
I havent seen anything like these before.
I'll test these and see what happens.  I suspect they'll fail.


Ruud:  To: sbirl+special(_at_)example(_dot_)com

Already have a rule for this one.  It comes just before the filter I
posted; they are 2 of the last 3 filters in my rc file.  Im sure some
other filter will have picked up these types of tests .... failing that
the last rule to folder it as potential spam.


Ruud:  To: sbirl(special)@example.com
Ruud:  etc.
Ruud:
Ruud:  See also rfc2822, with example addresses like:
Ruud:  Pete(A wonderful \) chap) <pete(his account)@silly.test(his host)>


Thanks for all the information.

_______________________________________________
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>