also sprach Cameron Simpson <[email protected]> [2015-04-28 04:17 +0200]: > Sounds like a job for a mutt macro. A first cut would be to write > a macro which pointed $mailcap_path at a different mailcap file, > then ran view-attach, then restored the old value.
Yes! This idea led me to a working solution^W hack:
set mailcap_path=~/.mailcap-edit-wrapper
and that file then contains entries for all types such as:
application/*; chmod +w %s && run-mailcap --action=edit %t:%s
Unfortunately, the main type ("application") cannot be wildcarded,
but there's only a limited set of those, so no big deal. The chmod
is needed since mutt saves the temporary file read-only.
So now it's easy to create a macro as you describe above, allowing
me to map 'e' to "editing an attachment".
Thanks for your help!
--
@martinkrafft | http://madduck.net/ | http://two.sentenc.es/
the uncertainty principle:
you can never be sure how many
beers you had last night.
spamtraps: [email protected]
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
