On Thu, 4 Mar 2004, Kevin A. McGrail wrote:

> Is there a quick trick (probably something crazy with formail) that you can
> run on ENTIRE_MESSAGE to turn it into an mbox with the correct first line so
> I can view it with mutt and determine whether to bounce it?

This shell one-liner will do it, though the date obviously won't match
the date in the message.  The date also won't be in RFC 822 format, but
most mail clients shouldn't barf on that.  If they do, see "man date" and
come up with the proper formatting string...

(echo "From `cat SENDER | tr -d '<>'` `date '+%c'`"; cat ENTIRE_MESSAGE) > message.mbox

Regards,

David.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to