On Mar 4, 2004, at 7:11 AM, David F. Skoll wrote:


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

`date +%d%m%y" "%H:%m%S` should[0] create RFC 822 compatible date + time


[0] It does on Darwin 7.2.0 - Mac OS X 10.3.2 (7D24)


--
-Loren K Louthan | tel: 818 786 2110 | AIM: LorenSRAR
-Data Communications Engineer - CRISNet Regional MLS
Government's view of the economy could be summed up in a few short phrases: If it moves, tax it. If it keeps moving, regulate it. And if it stops moving, subsidize it."
-Ronald Wilson Reagan


_______________________________________________
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