]> git.madduck.net Git - etc/mutt.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

implement "editing" of attachments
authormartin f. krafft <madduck@madduck.net>
Tue, 28 Apr 2015 12:51:19 +0000 (14:51 +0200)
committermartin f. krafft <madduck@madduck.net>
Tue, 28 Apr 2015 12:51:19 +0000 (14:51 +0200)
.mutt/keybindings
.mutt/mailcap-edit-wrapper [new file with mode: 0644]

index 461782d4596493585aa20e873cd0a1ed3026f3f2..844e8b8ad582eab7fd69e875ac2668c91f107cb5 100644 (file)
@@ -80,4 +80,6 @@ macro index,pager     \el     '<enter-command>set my_editor="$editor"<enter><enter-comma
 macro index            <F8>    "<enter-command>unset wait_key<enter><shell-escape>~/.mutt/mutt-notmuch --prompt search<enter><change-folder-readonly>~/.cache/mutt_results<enter>" "search mail (using notmuch)"
 macro index            <F9>    "<enter-command>unset wait_key<enter><pipe-message>~/.mutt/mutt-notmuch thread<enter><change-folder-readonly>~/.cache/mutt_results<enter><enter-command>set wait_key<enter>" "search and reconstruct owning thread (using notmuch)"
 
 macro index            <F8>    "<enter-command>unset wait_key<enter><shell-escape>~/.mutt/mutt-notmuch --prompt search<enter><change-folder-readonly>~/.cache/mutt_results<enter>" "search mail (using notmuch)"
 macro index            <F9>    "<enter-command>unset wait_key<enter><pipe-message>~/.mutt/mutt-notmuch thread<enter><change-folder-readonly>~/.cache/mutt_results<enter><enter-command>set wait_key<enter>" "search and reconstruct owning thread (using notmuch)"
 
+macro attach   e       "<enter-command>set my_mailcap_path="$mailcap_path"<enter><enter-command>set mailcap_path="~/.mutt/mailcap-edit-wrapper"<enter><view-mailcap><enter-command>set mailcap_path="$my_mailcap_path"<enter>" "edit temporary file of attachment"
+
 # vim:sw=12:noet:sts=12:ts=12:ft=muttrc
 # 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 (file)
index 0000000..6e94104
--- /dev/null
@@ -0,0 +1,2 @@
+application/*; chmod +w %s && run-mailcap --action=edit %t:%s
+image/*; chmod +w %s && run-mailcap --action=edit %t:%s