[Mimedefang] ENTIRE_MESSAGE not a Mailbox (mbox) file

Dave O'Neill dmo at roaringpenguin.com
Thu Mar 4 11:58:01 EST 2004


David F. Skoll wrote:

> 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

Using "date --rfc-822" or "date -R" will get you RFC 822 format (on 
Linux, using /bin/date from GNU coreutils... YMMV on other platforms).

Cheers,
Dave
-- 
Dave O'Neill <dmo at roaringpenguin.com>    Roaring Penguin Software Inc.
+1 (613) 231-6599 ext. 104               http://www.roaringpenguin.com/



More information about the MIMEDefang mailing list