Mail headers

Leslie Mikesell les at chinet.chi.il.us
Tue Dec 4 15:51:04 AEST 1990


In article <16028 at chopin.udel.edu> jon at chopin.udel.edu (Jon Deutsch) writes:
>Scenario:  I MAIL to a group alias (of about 40 people).
>	   The header is almost a page long due to all
>	   of the recipients.

>	   How can I set it up so that each person's header
>	   has only THEIR name/address in the To: field?

>	   But, before you answer, here is the criteria:
>	   The fix MUST be able to be done in an sh script 
>	   (ie: it must be done on the MAIL command line).

Are you really asking for something like this? (listfile has your
list of mail addresses, 1 per line)
#------------
TMP=/tmp/foo$$
cat >$TMP
while read TO
do
mail $TO <$TMP
done < listfile
rm $TMP
#-------------

What you probably want instead is to set up an alias or mailing list with
your mail transport software.  How this is done depends on the particular
mailer you are running, and may require administrative access.  The method
above has the dubious advantage of requiring no special permissions.

Les Mikesell
  les at chinet.chi.il.us



More information about the Comp.unix.programmer mailing list