]> git.mjollnir.org Git - dotfiles/mutt.git/commitdiff
Added notmuch integration
authorPenny Leach <penny@mjollnir.org>
Mon, 21 Feb 2011 14:43:26 +0000 (15:43 +0100)
committerPenny Leach <penny@mjollnir.org>
Mon, 21 Feb 2011 14:43:26 +0000 (15:43 +0100)
.muttrc

diff --git a/.muttrc b/.muttrc
index 069b2c52aedd46e3334d7de2eec9a29a629a3778..5283e1ccc4c52823ae5a8d484ca211bafe6159c3 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -145,6 +145,17 @@ macro attach E <save-entry><kill-line>/home/penny/attach/<enter>
 # put this last as it screws up the fucking syntax highlighting
 macro index \eb 'c=search'<enter><shell-escape>'mairix ' 'Enter Mairix search term'
 
+macro index <F8> \
+    "<enter-command>unset wait_key<enter><shell-escape>mutt-notmuch --prompt search<enter><change-folder-readonly>~/.cache/mutt_results<enter>" \
+    "search mail (using notmuch)"
+#macro index <F9> \ #mutt-patched only apparently
+    #"<enter-command>unset wait_key<enter><pipe-message>mutt-notmuch thread<enter><change-folder-readonly>~/.cache/mutt_results<enter><enter-command>set wait_key<enter>" \
+    #"search and reconstruct owning thread (using notmuch)"
+macro index <F9> \
+    "<enter-command>unset wait_key<enter><enter-command>unignore message-id<enter><pipe-message>mutt-notmuch thread<enter><change-folder-readonly>~/.cache/mutt_results<enter><enter-command>set wait_key<enter>" \
+    "search and reconstruct owning thread (using notmuch)"
+
+
 
 set pager_index_lines=10
 #set sort_aux=last-date-received
@@ -153,5 +164,5 @@ set wait_key=no
 
 
 # mark all read
-macro index \cr "<tag-pattern>.\n<tag-prefix><clear-flag>N<untag-pattern>.\n" #mark all messages as read
+macro index \eR "<tag-pattern>.\n<tag-prefix><clear-flag>N<untag-pattern>.\n" #mark all messages as read