]> rtime.felk.cvut.cz Git - notmuch.git/blobdiff - emacs/notmuch-show.el
emacs: `notmuch-show-forward-message' can use `notmuch-mua-new-forward-messages'
[notmuch.git] / emacs / notmuch-show.el
index b0d639bfc5334b1ac5347e021fae5cedc7956dd6..245114b719dac78726c2d47dc49e92679c79f30c 100644 (file)
@@ -1856,8 +1856,8 @@ any effects from previous calls to
 (defun notmuch-show-forward-message (&optional prompt-for-sender)
   "Forward the current message."
   (interactive "P")
-  (with-current-notmuch-show-message
-   (notmuch-mua-new-forward-message prompt-for-sender)))
+  (notmuch-mua-new-forward-messages (list (notmuch-show-get-message-id))
+                                   prompt-for-sender))
 
 (put 'notmuch-show-forward-open-messages 'notmuch-prefix-doc
      "... and prompt for sender")