I have been managing a *single* ist for quite some time that has lots of
AOL, Yahoo, Hotmail and MSN account which mean people always FORGET to
u_ns_ub themselves. So I have created a cron job that does the
following.
It takes the results of my procmail processing of all those failures to
get mailed and groups them into one file and then
sorts them to determine HOW long that they have NOT been getting their
messages. Basically 5 days on the individual messages and 30 days on
the digested type. (not 'fair' I know)
Then it processes the file and creates a list of users I want to
delete. I then create a file which is just a list of email addresses
and I presently create a file from that list to 'source" that emails the
persons that
they have been deleted and then u_ns_bs them by emailing
majordomo.
The problem is that I might have a list of 500 people to delete and
sourcing a file that looks like 500 lines of:
mail -s"YouB_bad" your@bad.address.com < letter.You.be.gone
often generates at the end of the processing
that I have TOO many files open on the system.
So I want to be able to source some file that I can get MORE Than one
person on the to line. Then I have a factor less of emails to send.
Best solution would be to actually get envelopes of a 100 at a shot.
Any ideas?
I did think about just creating a momemntary list
and putting all the people to be deleted in the list and then
send ONE message to this new majordomo list and then deleteing the list.
BUT I can get the same problem when I email majordomo deleteing them all
I have to right now do it 1 at a time and sourcing a 500 line file to
just
mail to majordomo and delete them is a hastle.
I DON"T want to run a diff on my list and the real list to create a new
one. That does work slick. But the 'paper trail' of when I deleted
these people automatically is maintained in the log file.
I suspose I could use the diff routines and keep track of the files if
someone could tell me how do from a source file create a file that is
genereated with a name associated with todays date. That would solve my
problem! So if anyone can tellme how froma file I am source can create a file
with say, todays date, as its name that would help!
Follow-Ups:
|
|