From 9e1e91de5d33eeb46724f62e481ee9f7055bb041 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 3 Jan 2019 23:49:05 -0200 Subject: Fix notmuch config --- muttrc.dot.link | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/muttrc.dot.link b/muttrc.dot.link index fa6dd2a..106a78f 100644 --- a/muttrc.dot.link +++ b/muttrc.dot.link @@ -264,11 +264,32 @@ macro pager \cb 'urlview' 'Follow links with urlview' # ---------------------------------------------------------------------------------------- # Notmuch # For info look at http://upsilon.cc/~zack/blog/posts/2011/01/how_to_use_Notmuch_with_Mutt +# https://wiki.archlinux.org/index.php/Notmuch # ---------------------------------------------------------------------------------------- -macro browser "unset wait_keymutt-notmuch --prompt search\ - ../.cache/mutt_results" "search mail (using notmuch)" - -macro index "~/apps/scripts/mutt-notmuch-tag" "Tag messages (using notmuch)" +#macro browser "unset wait_keymutt-notmuch --prompt search\ +# ../.cache/mutt_results" "search mail (using notmuch)" +# +macro index,pager "~/apps/utils-mail/mutt-notmuch-tag" "Tag messages (using notmuch)" + +macro index,pager \ +"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,pager \ +"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,pager \ +"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" # ---------- # Bogofilter -- cgit v1.2.3