<<< Date Index >>>     <<< Thread Index >>>

How do I filter a message?



Dear Mutt users,

        I cannot find a way to filter a message through an external
program when I press a macro key on it in the index view (or such.)
I might want to filter the Subject line or another header through sed,
or possibly pass the message to a script for complex operations.

I found the shell-escape (§ 6.4.1) and pipe-message (§ 6.4.2) commands
in the documentation, but none of them seems to do what I need.

shell-escape apparently doesn't have a way to pass information about the
currently selected message to the spawned program.

pipe-message on the other hand doesn't seem to be made for filtering
messages, because it doesn't expect a filtered message in return to
replace the original message with.


Any suggestions?


Toby