procmail
[Top] [All Lists]

Re: Need help talking to formail

2003-07-02 23:15:40
On Wed, Jul 02, 2003 at 11:51:28PM -0400, Lee Hoffner wrote:
Problem is the way it's currently written: the whole line, "From: Sender's 
Name <sender(_at_)domain(_dot_)com>", gets written to the spammerlist. I just 
want the 
email address. Any ideas?

      SPAMMER=|formail -c | egrep '^From:'

        SPAMMER=|formail -r | formail -x To:

-r generates an auto-reply header (strips out the "Real Name" portion), -x
extracts just the contents of a header field.

-- 
Andrew Edelstein        -       http://andrew.pure-chaos.com/resume.txt

Please do not reply directly to me, or Cc: me on a reply to a list message.
I'll get my copy from the list.

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