On Thu, 23 Sep 1999, Chuck R. Combs wrote:
You could try make a perl script to do it.
I'll have a scketch for you in a few minutes.
> Sorry if I missed this in the archives ...
>
> I want to send a lot of personalized mail a little more efficiently to
> a group of users which aren't on a mailing list (monthly billing advice,
> actually).
>
> To send a single message, I can do "qmail-inject <message",
> where message has both header and body.
>
> I would like to do the same thing for a batch, e.g. "qmail-inject <batch",
> where batch is a sequence of messages delimitd by, say, '^\' (the
> ASCII "file separator" character).
>
> My current approach is to parse the batch file, write a temporary file,
> spawn a script which injects the file, truncate the file, and repeat.
>
> This works but is a little slow because closing the temporary file
> flushes to disk, because qmail-inject and the shell to interpret the
> script are repeatedly spawned, etc. If qmail-inject could simply
> loop over the batch, all this could be eliminated.
>
> I am tempted to add a loop for this but am unsure of any possible
> repercussions. I'd also entertain formatting the batch as per SMTP
> and giving it to qmail-queue if that is easier.
>
> Any comments?
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Luis Campos de Carvalho
System Administrator at ECB -- Escola Paulista de Medicina
"I believe that every human has a finite number of heartbeats. I don't
intend to waste any of mine running around doing exercises."
-- Neil Armstrong
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=