🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: git.oit.questions
Article #1

How to mail to multiple users (i.e. a mailing list)

#1
From: Peter L. Thomas, AE
Date: Mon, 28 Sep 1992 00:22
29 lines
1294 bytes
I can't figure out how I did this some years ago.

I have a file with many user names, (in RFC format, including
their real names), one name to a line.

I am trying to write a Korn Shell script to send a message
to each of these users sequentially.

I've done this once before, with something close to this:

while read name < sae.addresses; do ;\
mail -s "MESSAGE" $name < message.file ; done

But this isn't quite right.  The "read name < sae.addresses" reads
the first name of the file each time, rather than reading each
name one after the other.  (i.e. it results in an endless string
of messages to the same user).

Luckily I've only done debugging with my test commands so far, so
I haven't clobbered anyone's mailboxes.

Help!

--Pete
-- 
Peter L. Thomas (Senior AE)
"Figures never lie, but liars always figure."
Georgia Institute of Technology, Atlanta Georgia, 30332
Internet: ce202a2@prism.gatech.edu
Technical Details
Message-ID: <69161@hydra.gatech.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!prism!ce202a2

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!prism!ce202a2
From: ce202a2@prism.gatech.EDU (Peter L. Thomas, AE)
Newsgroups: git.oit.questions,comp.unix.shell
Subject: How to mail to multiple users (i.e. a mailing list)
Message-ID: <69161@hydra.gatech.EDU>
Date: 28 Sep 92 00:22:53 GMT
Followup-To: poster
Organization: Georgia Institute of Technology
Lines: 29