[Mimedefang] ENTIRE_MESSAGE not a Mailbox (mbox) file

David F. Skoll dfs at roaringpenguin.com
Thu Mar 4 10:11:37 EST 2004


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.



More information about the MIMEDefang mailing list