From: martin f. krafft Date: Tue, 28 Apr 2015 12:51:19 +0000 (+0200) Subject: implement "editing" of attachments X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/50a0f247ac0919524428ef5a6b327b125374d267?ds=sidebyside;pf=etc implement "editing" of attachments --- diff --git a/.mutt/keybindings b/.mutt/keybindings index 461782d..844e8b8 100644 --- a/.mutt/keybindings +++ b/.mutt/keybindings @@ -80,4 +80,6 @@ macro index,pager \el 'set my_editor="$editor" "unset wait_key~/.mutt/mutt-notmuch --prompt search~/.cache/mutt_results" "search mail (using notmuch)" macro index "unset wait_key~/.mutt/mutt-notmuch thread~/.cache/mutt_resultsset wait_key" "search and reconstruct owning thread (using notmuch)" +macro attach e "set my_mailcap_path="$mailcap_path"set mailcap_path="~/.mutt/mailcap-edit-wrapper"set mailcap_path="$my_mailcap_path"" "edit temporary file of attachment" + # vim:sw=12:noet:sts=12:ts=12:ft=muttrc diff --git a/.mutt/mailcap-edit-wrapper b/.mutt/mailcap-edit-wrapper new file mode 100644 index 0000000..6e94104 --- /dev/null +++ b/.mutt/mailcap-edit-wrapper @@ -0,0 +1,2 @@ +application/*; chmod +w %s && run-mailcap --action=edit %t:%s +image/*; chmod +w %s && run-mailcap --action=edit %t:%s