From: Silvio Rhatto Date: Fri, 4 Jan 2019 01:49:05 +0000 (-0200) Subject: Fix notmuch config X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9e1e91de5d33eeb46724f62e481ee9f7055bb041;p=rhatto%2Fdotfiles%2Fmail.git Fix notmuch config --- 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