feat(notmuch): only tag new messages w/ afew

Indexing all messages can be very expensive, so some time can be saved
by only indexing new messages.
This commit is contained in:
Thomas Friese 2021-11-21 14:28:07 +01:00 committed by Henrik Lissner
parent 196ea03281
commit 54c4ae4853

View file

@ -19,8 +19,8 @@ More specifically, this accepts one of the following symbols (see
OR a shell command string such as OR a shell command string such as
\"path/to/some/shell-script.sh\" \"path/to/some/shell-script.sh\"
\"offlineimap && notmuch new && afew -a -t\" \"offlineimap && notmuch new && afew -n -t\"
\"mbsync %s -a && notmuch new && afew -a -t\"") \"mbsync %s -a && notmuch new && afew -n -t\"")
(defvar +notmuch-mail-folder "~/.mail/account.gmail" (defvar +notmuch-mail-folder "~/.mail/account.gmail"
"Where your email folder is located (for use with gmailieer).") "Where your email folder is located (for use with gmailieer).")
@ -98,7 +98,7 @@ variable accordingly.")
notmuch-tree-mode-hook notmuch-tree-mode-hook
notmuch-search-mode-hook) notmuch-search-mode-hook)
#'hide-mode-line-mode) #'hide-mode-line-mode)
(map! :localleader (map! :localleader
:map (notmuch-hello-mode-map notmuch-search-mode-map notmuch-tree-mode-map notmuch-show-mode-map) :map (notmuch-hello-mode-map notmuch-search-mode-map notmuch-tree-mode-map notmuch-show-mode-map)
:desc "Compose email" "c" #'+notmuch/compose :desc "Compose email" "c" #'+notmuch/compose