procmail
[Top] [All Lists]

Best way of finding/formatting... sender & sender address?

2006-10-03 11:30:04
Simple case scenario, From: header reads,

    From: "First Last" <first(_dot_)last(_at_)mydomain(_dot_)tld>

but sometimes it may be formatted slightly different, eg.

    From: "First(_at_)Last" <first(_dot_)last(_at_)mydomain(_dot_)tld>
    From: First Last <first(_dot_)last(_at_)mydomain(_dot_)tld>
    From: first(_dot_)last(_at_)mydomain(_dot_)tld
    From: first.last <>

... and any such variation as the sender chooses.  I am finding it 
difficult to construct a regex to match a sender string and an address 
string (or part of).

Any suggestions?

Thanks,
Steve :)

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