]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-message.el
emacs: Make moving to the previous message move to the previous boundary
[notmuch] / emacs / notmuch-message.el
index 08e5b1749af8e4d11813826f23675f6c6676806a..d3738bf44e785193beb015fb12423829763b470e 100644 (file)
@@ -20,6 +20,7 @@
 ;; Authors: Jesse Rosenthal <jrosenthal@jhu.edu>
 
 (require 'message)
+(require 'notmuch-tag)
 (require 'notmuch-mua)
 
 (defcustom notmuch-message-replied-tags '("replied")
@@ -31,7 +32,7 @@ For example, if you wanted to add a \"replied\" tag and remove
 the \"inbox\" and \"todo\", you would set
     (\"replied\" \"-inbox\" \"-todo\"\)"
   :type 'list
-  :group 'notmuch)
+  :group 'notmuch-send)
 
 (defun notmuch-message-mark-replied ()
   ;; get the in-reply-to header and parse it for the message id.
@@ -44,7 +45,7 @@ the \"inbox\" and \"todo\", you would set
                                (concat "+" str)
                              str))
                          notmuch-message-replied-tags)))
-       (apply 'notmuch-tag (concat "id:" (car (car rep))) tags)))))
+       (funcall 'notmuch-tag (notmuch-id-to-query (car (car rep))) tags)))))
 
 (add-hook 'message-send-hook 'notmuch-message-mark-replied)