procmail
[Top] [All Lists]

Re: Detecting sender's name

2001-03-06 14:27:44
Donal Patrick Conway wrote:

I'm just wondering if anyone could tell me how to extract the sender's
name from an email.

You can't. It's not there unless the recipient explicitly chooses to
include it.

But one thing that I have at the top of my file is the following:

        FROMADR=`formail -XFrom:`
        LOG="
        $FROMADR
        "

The added information and increased readability of the logfiles is
WONDERFUL! And it provides what I *THINK* you are asking for.

Aloha mai Nai`a!
-- 
"Please have your Internet License             http://kapu.net/~mjwise/
  and Usenet Registration handy..."

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