A small tool to "snooze" emails in the notmuch email client, i.e. remove messages from the inbox and add them again later at a specified time.
Add (require 'notmuch-snooze)
to your Emacs configuration to load the package
and bind the functions notmuch-snooze
and notmuch-unsnooze
to keys, for
example S
and U
:
(define-key notmuch-search-mode-map (kbd "S") #'notmuch-snooze)
(define-key notmuch-show-mode-map (kbd "S") #'notmuch-snooze)
(define-key notmuch-tree-mode-map (kbd "S") #'notmuch-snooze)
(define-key notmuch-search-mode-map (kbd "U") #'notmuch-unsnooze)
(define-key notmuch-show-mode-map (kbd "U") #'notmuch-unsnooze)
(define-key notmuch-tree-mode-map (kbd "U") #'notmuch-unsnooze)
Additionally, the notmuch-unsnooze
script needs to be called
in regular intervals (for example when fetching mail) to unsnooze
previously snoozed messages. The script requires python bindings
for notmuch to be installed.
I rewrote this to store the unsnooze time in a tag; this idea is taken from a discussion on the notmuch mailing list.