procmail
[Top] [All Lists]

Extract only address from header content?

1997-09-04 16:40:35
Following recipe captures eveything on To: header content
including for example "(Bassmkt)".

:0
* ^To:[         ]*\/[^  ].*
{
    TO_VALUE = $MATCH
}

How could I capture only the pure address part such as
xxx(_at_)xxx(_dot_)xx , xxx(_at_)xxx(_dot_)xx(_dot_)xx , @@@..ix.netcom.com ,
@(_dot_)(_at_)ix(_dot_)netcom(_dot_)com , etc?

Or is there easier workaround to capture spam based on
TO_VALUE equals FROM_VALUE strategy
while one of them inlcude extra "(Bassmkt)" string?

TIA
P.S. Is there web-page-retrieval software which could run from
     UNIX shell account? If it exists, please let me know off-the-list.
_/_/_/      Mitsuru FURUKAWA      _/_/_/
_/_/_/        Tokyo, Japan        _/_/_/
_/_/_/     mailto:furu(_at_)009(_dot_)com    _/_/_/
_/_/_/  http://www.009.com/furu/  _/_/_/

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