From 50a0f247ac0919524428ef5a6b327b125374d267 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 28 Apr 2015 14:51:19 +0200 Subject: [PATCH] implement "editing" of attachments --- .mutt/keybindings | 2 ++ .mutt/mailcap-edit-wrapper | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 .mutt/mailcap-edit-wrapper 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 -- 2.39.5