diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2012-01-24 16:06:19 -0800 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-01-30 23:21:16 -0400 |
commit | 436c98a9732ea66a134674d7ff4711b7cdd8bbf9 (patch) | |
tree | d3e89db92a7c888d88c23dd9d80be654bb3ba60a /emacs/notmuch-show.el | |
parent | be05158b69d45b63999707f60b8ee0166438a944 (diff) |
emacs: add message archiving functions
This adds two new message archiving functions that parallel the thread
archiving functions: notmuch-show-archive-message{,-then-next}. The
former also takes a prefix argument to unarchive the message (ie. put
back in inbox).
Diffstat (limited to 'emacs/notmuch-show.el')
-rw-r--r-- | emacs/notmuch-show.el | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 10b3ea9..2871350 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1622,6 +1622,23 @@ buffer." (notmuch-show-archive-thread) (notmuch-show-next-thread)) +(defun notmuch-show-archive-message (&optional unarchive) + "Archive the current message. + +If a prefix argument is given, the message will be +\"unarchived\" (ie. the \"inbox\" tag will be added instead of +removed)." + (interactive "P") + (if unarchive + (notmuch-show-add-tag "inbox") + (notmuch-show-remove-tag "inbox"))) + +(defun notmuch-show-archive-message-then-next () + "Archive the current message, then show the next open message in the current thread." + (interactive) + (notmuch-show-archive-message) + (notmuch-show-next-open-message)) + (defun notmuch-show-stash-cc () "Copy CC field of current message to kill-ring." (interactive) |