From a514a615c56d94211efe62ea1f3ce31f10d65629 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 1 May 2022 11:21:44 +0200 Subject: mutt: Use XDG compliant config location .config/mutt/*: Use XDG_CONFIG_DIR compliant config location --- .config/mutt/macros.rc | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .config/mutt/macros.rc (limited to '.config/mutt/macros.rc') 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 'source ~/.mutt/dave@sleepmap.de.rc!' +macro index,pager 'source ~/.mutt/dvzrv@archlinux.org.rc!' + +macro attach W \ + "~/Downloads/" \ + "Save attachment to ~/Downloads." + +macro index D \ + "+Trash" \ + "Move message to Trash" + +macro index S \ + "+Spam" \ + "Move message to Spam." + +macro index I \ + "=Archives/INBOX/2020" \ + "Archive tagged INBOX message(s) in Archives.INBOX.2020" + +macro index G \ + "=Archives/Sent/2020" \ + "Archive tagged Sent message(s) in Archives.Sent.2020" + +macro index,pager A \ + "khard add-email" \ + "Add the sender email address to khard" + +macro index \ + "set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ + notmuch-mutt -r --prompt search\ + `echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ + set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ + "notmuch: search mail" + +macro index \ + "set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ + notmuch-mutt -r thread\ + `echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`\ + set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ + "notmuch: reconstruct thread" + +macro index \ + "set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key\ + notmuch-mutt tag -- -inbox\ + set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key" \ + "notmuch: remove message from inbox" + -- cgit v1.2.3-70-g09d2