dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d42e8755288825240d559b18a71e71fb187dbefc
parent 74aa6cec8f69f29fcee4791da0f2dcdc88f3ac56
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Fri,  1 Apr 2016 09:17:03 -0700

add notmuch and notmuch-mutt integration

Diffstat:
M.mutt/muttrc | 22+++++++++++++++++++++-
Mdebian-install.sh | 2++
2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/.mutt/muttrc b/.mutt/muttrc @@ -164,10 +164,30 @@ macro pager U "<pipe-entry>urlview<enter>" "call urlview to open links" # notmuch integration # 'L' performs a notmuch query, showing only the results -macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern" +macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages in this folder matching a notmuch pattern" # 'a' shows all messages again (supersedes default <alias> binding) macro index a "<limit>all\n" "show all messages (undo limit)" +# notmuch-mutt integration, from `man notmuch-mutt` +macro index N "<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 all mail" + +macro index <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 <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" + # show recipient instead of sender in "Sent" folder view set date_format='%b %d %k:%M' set my_index_format_pre='set index_format="%3C %Z %D %-20.20' diff --git a/debian-install.sh b/debian-install.sh @@ -30,6 +30,8 @@ sudo apt-get install \ msmtp-gnome \ mutt \ ncmpcpp \ + notmuch \ + notmuch-mutt \ ntp \ offlineimap \ okular \