diff options
Diffstat (limited to '.config/mutt/macros.rc')
-rw-r--r-- | .config/mutt/macros.rc | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/.config/mutt/macros.rc b/.config/mutt/macros.rc new file mode 100644 index 0000000..83dd9d0 --- /dev/null +++ b/.config/mutt/macros.rc @@ -0,0 +1,49 @@ + +# source folder settings and enter folder +macro index,pager <F2> '<sync-mailbox><enter-command>source ~/.mutt/dave@sleepmap.de.rc<enter><change-folder>!<enter>' +macro index,pager <F3> '<sync-mailbox><enter-command>source ~/.mutt/dvzrv@archlinux.org.rc<enter><change-folder>!<enter>' + +macro attach W \ + "<save-entry><bol>~/Downloads/<eol>" \ + "Save attachment to ~/Downloads." + +macro index D \ + "<tag-prefix><save-message>+Trash<enter>" \ + "Move message to Trash" + +macro index S \ + "<tag-prefix><save-message>+Spam<enter>" \ + "Move message to Spam." + +macro index I \ + "<tag-prefix><save-message>=Archives/INBOX/2020<enter><sync-mailbox>" \ + "Archive tagged INBOX message(s) in Archives.INBOX.2020" + +macro index G \ + "<tag-prefix><save-message>=Archives/Sent/2020<enter><sync-mailbox>" \ + "Archive tagged Sent message(s) in Archives.Sent.2020" + +macro index,pager A \ + "<pipe-message>khard add-email<return>" \ + "Add the sender email address to khard" + +macro index <F8> \ + "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ + <shell-escape>notmuch-mutt -r --prompt search<enter>\ + <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\ + <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \ + "notmuch: search mail" + +macro index <F9> \ + "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ + <pipe-message>notmuch-mutt -r thread<enter>\ + <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\ + <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \ + "notmuch: reconstruct thread" + +macro index <F6> \ + "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ + <pipe-message>notmuch-mutt tag -- -inbox<enter>\ + <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \ + "notmuch: remove message from inbox" + |