On Fri, Feb 08, 2002 at 02:35:27PM -0500, Omen Wild wrote:
> Quoting Will Yardley <[EMAIL PROTECTED]> on Fri, Feb 08 09:48:
> > 
> > i think the original poster's problem wasn't editing the message, but
> > viewing it in mutt's internal pager.
> 
> You can do something like this (shamelessly copied from some rot13
> macros previously posted):
> 
> # Wrap long lines
> macro pager ~@won "<enter-command>set display_filter=\"par 73qe\"; macro pager \\cw 
>~@woff\n<display-toggle-weed><display-toggle-weed>"
> macro pager ~@woff "<enter-command>set display_filter=''; macro pager \\cw 
>~@won\n<display-toggle-weed><display-toggle-weed>"
> macro pager \cw ~@won "Toggle line wrapping"
> 
> Someone who knows par could probably make the command a little smarter.
> That was what I gleaned from a 10 minute browse of the manual.
> 
> Also, it munges the headers as well.  I don't know how to get par to
> skip the headers, and mutt doesn't seem to have a way to only filter
> the body.

guess you could pump it through formail to accomplish this:
Just get the headers: formail -X ""
Get the body: formail -I "" | par 73qe

sed works too: sed -e '/^$/ q' and sed -e '1,/^$/ d'

trick is to store the file so you can pump it twice through (sed|formail)
and then recombine the output.

pete
> 
> -- 
> "What is this talk of 'release'?  Klingons do not make software
> 'releases'.  Our software 'escapes,' leaving a bloody trail of
> designers and quality assurance people in its wake." 


Reply via email to