Here's something I keep handy for such occasions:
#!/bin/sh
#
# bulk_forward.sh, Dave Kitabjian, 6/3/99, [EMAIL PROTECTED]
#
# Forwards an entire directory of email to somewhere else using Qmail.
#
if [ $# -ne 2 ]
then
echo "Usage: $0 <source_directory> <desination_address>"
exit 1
fi
error=0
for message in `ls $1`
do
qmail-inject $2 < $1/$message
if [ $? -eq 0 ]
then
echo "Done: $message: "`grep '^From:' $1/$message | head -1`
else
echo "ERROR: $message: "`grep '^From:' $1/$message | head -1`
error=1
fi
done
if [ $error -eq 1 ]
then
exit 2
else
exit 0
fi
###########################################################
On Wednesday, June 30, 1999 11:41 AM, Bruno Wolff III
[SMTP:[EMAIL PROTECTED]] wrote:
> On Wed, Jun 30, 1999 at 09:42:04AM -0400,
> Victor Tavares <[EMAIL PROTECTED]> wrote:
> > I've searched the archives but couldn't find a quick answer to the
> > following question:
> >
> > How do you resend mail that has been successfully delivered to a Maildir?
>
> Some mail readers (such as mutt) have tag and bounce features that make it
> relatively easy to resend messages to other people while preserving almost
> all of the header information.
>
> You could also probably use a foreach loop in csh to use each file in
> the maildir directory as input to qmail-inject with a specified recipient.