[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote on Thu, 17 Feb 2000:
> I sometimes need to preprocess a message I 'm about to reply
> (eg. to reformat it so that long lines fit at a particular screen width)
>
> After reading the manual and performing a search in 'comp.mail.mutt',
> I am still puzzled, whether and how it could be done.
There's no easy way that I can think of. You can use e(dit-message)
from the index to edit the message, and then you can do whatever you
want with the editor to it. Eg. if your editor has a feature such as
"wrap all long lines currently in buffer" then can be done. Or if you
want to use an external program, then you could possibly call it from
within your editor.
If you want to use an external program but don't really want to edit the
message in an editor, I suppose it could be possible to write a macro
such as:
macro index <key> ":set editor=my.filter\n<edit-message>:set editor=mynormaleditor\n"
... with which <key> will run the message through my.filter, which must
take the filename as the first argument and write the output back into
the same file, before exiting.
Not really an elegant solution, and you have to hard-code the filter
name into the macro (as well as your regular editor), but I'm pretty
sure it would work.
Hope this helps,
Mikko
PS. If you get that to work, I would be interested in hearing of that.
:-)
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Entropy isn't what it used to be.