> that; qmail-inject won't look at the To header.
I didn't particularly want to enter each individual address one-by-one (for
a hundred odd files) and couldn't be bothered playing with regex's to get it
to search for the To: header in the files, so I just wrote a quick perl
script to apply qmail-inject < file to every file in the directory
containing the files to be resent. I was worried since there were a number
of headers that could confuse it, but it appears (watched logs, did a few
test e-mails before hand, only a few typical bounces back) that qmail-inject
WILL in fact read the To: header of a file if invoked with qmail-inject <
file. Just thought I'd put this forward in case I have got it wrong.
Brett
Manager
InterPlanetary Solutions
http://ipsware.com/
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Scott Gifford
> Sent: Saturday, August 05, 2000 3:32 AM
> To: Brett Randall
> Cc: qmail
> Subject: Re: Re-injecting complete messages
>
>
> "Brett Randall" <[EMAIL PROTECTED]> writes:
>
> > Hi...I've been asked by a fellow sysadmin to reinject a number
> of complete
> > e-mails (containing every original header field and the body with the
> > standard one-line gap) into the mail system for delivery to
> their relevant
> > locations, both locally and remotely. What is the best way of
> doing this?
>
> /var/qmail/bin/qmail-inject
>
> should do what you need. Make sure you give it a
>
> -f envelope-sender
>
> where the envelope sender is where bounces from this message should
> go, and then give it a list of who the message should go to after
> that; qmail-inject won't look at the To header.
>
> For example:
>
> /var/qmail/bin/qmail-inject -f [EMAIL PROTECTED]
> [EMAIL PROTECTED] [EMAIL PROTECTED]
>
> is how I would re-inject this message.
>
> Hope this helps,
>
> ----ScottG.