aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-01-03 23:49:05 -0200
committerSilvio Rhatto <rhatto@riseup.net>2019-01-03 23:49:05 -0200
commit9e1e91de5d33eeb46724f62e481ee9f7055bb041 (patch)
tree53943f68ac08fdf1071362e89c65451cf8539362
parent1eddf56265e9375514ca54f71be57d179b675019 (diff)
downloadmail-9e1e91de5d33eeb46724f62e481ee9f7055bb041.tar.gz
mail-9e1e91de5d33eeb46724f62e481ee9f7055bb041.tar.bz2
Fix notmuch config
-rw-r--r--muttrc.dot.link29
1 files 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 <pipe-entry>'urlview'<enter> '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 <F8> "<enter-command>unset wait_key<enter><shell-escape>mutt-notmuch --prompt search\
- <enter><change-dir>../.cache/<enter><search>mutt_results<enter><enter>" "search mail (using notmuch)"
-
-macro index <F7> "<tag-prefix><pipe-message>~/apps/scripts/mutt-notmuch-tag<enter>" "Tag messages (using notmuch)"
+#macro browser <F8> "<enter-command>unset wait_key<enter><shell-escape>mutt-notmuch --prompt search\
+# <enter><change-dir>../.cache/<enter><search>mutt_results<enter><enter>" "search mail (using notmuch)"
+#
+macro index,pager <F7> "<tag-prefix><pipe-message>~/apps/utils-mail/mutt-notmuch-tag<enter>" "Tag messages (using notmuch)"
+
+macro index,pager <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,pager <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,pager <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"
# ----------
# Bogofilter