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 <[EMAIL PROTECTED]>    Roaring Penguin Software Inc.
+1 (613) 231-6599 ext. 104               http://www.roaringpenguin.com/
_______________________________________________
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