X-Git-Url: https://rtime.felk.cvut.cz/gitweb/notmuch.git/blobdiff_plain/191f41cfec03a39820239128cf7916b7c0169cf7..e36284d72df4a9f130bfd07290e068ff2550384b:/emacs/notmuch-tree.el diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index 8d59e65f..1dde9a7a 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -319,11 +319,13 @@ correct message properties." "Return the tags of the current message." (notmuch-tree-get-prop :tags)) -(defun notmuch-tree-get-message-id () +(defun notmuch-tree-get-message-id (&optional bare) "Return the message id of the current message." (let ((id (notmuch-tree-get-prop :id))) (if id - (notmuch-id-to-query id) + (if bare + id + (notmuch-id-to-query id)) nil))) (defun notmuch-tree-get-match ()