On Mon, 16 Aug 1999 13:46:26 -0700, Gregory Sutter
Does anyone have a set of recipes that will correctly format Microsoft
Outlook mail? Outlook, in typical Microsoft form, cannot quote
correctly. It also encourages upside-down replys. This bugs the crap
out of me.
Something like this maybe?
* probaby some conditions to identify Outkook message headers
* B ?? ^-----Original Message-----$
| sed -e '1,/^-----Original Message-----$/!bh' -eH -ed \
-e:h -e 's/^/> /' -e '$ G'
This is crude but can perhaps serve as a starting point. sed will
probably cop out if the reply (up to the "Original Message" separator)
is too long to fit into the hold area, or, worse, pretend that it fit
but lose part of it.
Hope this helps,
/* era */
Paraphrase of the sed script: Up thru the "Original Message"
separator, move input lines to the hold space instead of printing
them. After that, prepend '> ' to each line, then print immediately;
and on the last line, print the hold space.
Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition