summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-02-17 16:19:32 -0500
committerJesse Luehrs <doy@tozt.net>2019-02-17 16:19:32 -0500
commit1c73d7bad4c789e45e91c9b3bbdbf1d265f6f8ed (patch)
treedd83751147c22e1c0255a4188da65b0fad98e50c
parent4c56c5869df054e15a65088331991e2c305887e7 (diff)
downloadconf-1c73d7bad4c789e45e91c9b3bbdbf1d265f6f8ed.tar.gz
conf-1c73d7bad4c789e45e91c9b3bbdbf1d265f6f8ed.zip
switch to neomutt and clean up my notmuch usage a bit
-rw-r--r--mutt/imap2
-rw-r--r--mutt/muttrc10
-rw-r--r--mutt/offlineimap2
-rw-r--r--notmuch-config4
-rwxr-xr-xnotmuch/hooks/post-new4
5 files changed, 11 insertions, 11 deletions
diff --git a/mutt/imap b/mutt/imap
index 09649c9..13ed472 100644
--- a/mutt/imap
+++ b/mutt/imap
@@ -4,4 +4,4 @@ bind index R imap-fetch-mail
set timeout=60
set mail_check=60
-# vim: ft=muttrc
+# vim: ft=neomuttrc
diff --git a/mutt/muttrc b/mutt/muttrc
index 2a6fef1..f7b384b 100644
--- a/mutt/muttrc
+++ b/mutt/muttrc
@@ -98,6 +98,9 @@ set fast_reply
# use the Reply-To header in preference to the From header
set reply_to
# }}}
+# search {{{
+set nm_exclude_tags=spam
+# }}}
# prompts {{{
# never automatically move read messages
unset move
@@ -136,6 +139,8 @@ bind index p search-opposite
bind index A group-reply
bind index g first-entry
bind index G last-entry
+bind index C vfolder-from-query
+bind index E entire-thread
macro index S "<enter-command>set resolve=no<enter><clear-flag>N<save-message>=spam<enter><enter-command>set resolve=yes<enter>" "mark message as spam"
macro index \Cn "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
@@ -144,9 +149,6 @@ bind compose S ispell
bind editor <tab> complete-query
-macro index <F8> "<enter-command>unset wait_key<enter><shell-escape>notmuch-mutt -r --prompt search<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter><enter-command>set wait_key<enter>" "notmuch: search mail"
-macro index <F9> "<enter-command>unset wait_key<enter><pipe-message>notmuch-mutt -r thread<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter><enter-command>set wait_key<enter>" "notmuch: reconstruct thread"
-
macro index,pager U "<enter-command> set my_pdsave=\$pipe_decode<enter>\
<enter-command> unset pipe_decode<enter>\
<pipe-message>extract_url<enter>\
@@ -162,4 +164,4 @@ set imap_check_subscribed
# aliases {{{
set query_command = "abook --mutt-query '%s'"
# }}}
-# vim: fdm=marker
+# vim: fdm=marker ft=neomuttrc
diff --git a/mutt/offlineimap b/mutt/offlineimap
index 45439d3..6767f85 100644
--- a/mutt/offlineimap
+++ b/mutt/offlineimap
@@ -13,4 +13,4 @@ macro index R "<enter-command>unset wait_key<enter><shell-escape>update-mail<ent
set timeout=3
set mail_check=0
-# vim: ft=muttrc
+# vim: ft=neomuttrc
diff --git a/notmuch-config b/notmuch-config
index c194010..9b4117a 100644
--- a/notmuch-config
+++ b/notmuch-config
@@ -7,9 +7,7 @@ primary_email=doy@tozt.net
other_email=doy@stripe.com;jesse.luehrs@iinteractive.com;doy@cpan.org;
[new]
-tags=unread;new;
-
-ignore=
+ignore=spam
[maildir]
synchronize_flags=true
diff --git a/notmuch/hooks/post-new b/notmuch/hooks/post-new
index 27e503f..8809f91 100755
--- a/notmuch/hooks/post-new
+++ b/notmuch/hooks/post-new
@@ -1,4 +1,4 @@
#!/bin/sh
-notmuch tag +spam -new -- tag:new and folder:spam
-# notmuch tag -new -- tag:new
+notmuch tag +spam -- folder:spam -tag:spam
+notmuch tag -spam -- -folder:spam tag:spam