/notmuch-snooze

Support for snoozing messages in the notmuch mail client

Primary LanguageEmacs LispBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

notmuch-snooze

Description

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.

Installation

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.

Credits

I rewrote this to store the unsnooze time in a tag; this idea is taken from a discussion on the notmuch mailing list.