🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: git.oit.questions
1 messages
1 total messages Started by Peter L. Thomas, AE Mon, 28 Sep 1992 00:22
How to mail to multiple users (i.e. a mailing list)
#1
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads