procmail
[Top] [All Lists]

Re: Matching literal dot in To

2015-06-14 12:11:47
LOG="$MATCH"

Inserting that would be quite useful so you see exactly what is being matched. 
This makes tweaking the patterns much easier.

-- 


On Jun 13, 2015, at 16:21, Moby <moby(_at_)mobsternet(_dot_)com> wrote:

To header from email:
To: "gamestop(_at_)abc-def(_dot_)com" <gamestop(_at_)abc-def(_dot_)com>

Recipe:
:0w
* ^TO_.*\<[^.@]+\.[^.@]+@


Log:
procmail: Match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?).*\<[^.@]+\.[^.@]+@"

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

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