Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!att!linac!midway!gargoyle!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.programmer Subject: Re: Mail headers Message-ID: <1990Dec04.045104.7061@chinet.chi.il.us> Date: 4 Dec 90 04:51:04 GMT References: <16028@chopin.udel.edu> Organization: Chinet - Public Access UNIX Lines: 31 In article <16028@chopin.udel.edu> jon@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@chinet.chi.il.us