Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 1999 12:07:04 +1000 (EST)
From:      "Daniel O'Callaghan" <danny@freebsd.org>
To:        Richard Uren <richard@thehub.com.au>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Offtopic mail question.
Message-ID:  <Pine.BSF.4.10.9908291158370.50109-100000@enya.clari.net.au>
In-Reply-To: <000501bef1b7$ff701fc0$e4f08fcb@thehub.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

Hi Richard,

A while ago I did a similar thing, although my error was to feed all mail
to *.com.au to a downstream uucp node :-)  That was fun to undo...

What you'll need to do is split the mailbox you have into individual
messages, using a perl script or some such to split on the 'From ' lines
at the start of each message.  Once upon a time I hacked the 'from'
command to do just that, but I'm not sure where I put the patches.

When you have your separated messages, feed them into 
'/usr/sbin/sendmail -T', one by one.  It probably won't handle every
message properly, especially people who mail to a list and set the To:
line to be themselves - you'll just send the message back to the sender.

Messages which have mailling lists in the To: line will be sent back to
the mailling list, which is also undesirable.

You might be able to do additional processing of the messages yourself to
work out which ones are safe to send automatically, by checking to see if
the sender or recipient is local to you.

Cheers,

Danny



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9908291158370.50109-100000>