On Sun 1999-07-25 (17:09), [EMAIL PROTECTED] wrote:
> Hello!
> 
> What is the proper environment variable to use for setting
> the personal name in the From: field when sending mail by
> invoking qmail's sendmail replacement?
> 
> I'm getting a lite tired of "[EMAIL PROTECTED]" being the only
> thing showing up in the From: field in people's mail clients :)

I use:

 export NAME=`perl -e 'print ((split(/,/,(getpwnam($ENV{USER}))[6]))[0]);'`

in my /etc/profile.

It sets the name to the first part of the gecos field.

  - Keith

> / Peter Schuller

-- 
Keith Burdis - MSc (Com Sci) - Rhodes University, South Africa  
Email   : [EMAIL PROTECTED]
WWW     : http://www.rucus.ru.ac.za/~keith/
IRC     : Panthras                                          JAPH

"Any technology sufficiently advanced is indistinguishable from a perl script"

Standard disclaimer.
---

Reply via email to