Insert signature into replies

When you compose a new message, message mode carefully inserts your
mail signature at the bottom of the message; as notmuch constructs the
reply all by itself, this doesn't happen then. Use the message mode
function 'message-insert-signature' to add that to reply buffers.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2009-11-20 20:57:35 -08:00 committed by Carl Worth
parent 03fd69322b
commit 265be025c2

View file

@ -289,6 +289,7 @@ buffer."
(defun notmuch-reply (query-string) (defun notmuch-reply (query-string)
(switch-to-buffer (generate-new-buffer "notmuch-draft")) (switch-to-buffer (generate-new-buffer "notmuch-draft"))
(call-process notmuch-command nil t nil "reply" query-string) (call-process notmuch-command nil t nil "reply" query-string)
(message-insert-signature)
(goto-char (point-min)) (goto-char (point-min))
(if (re-search-forward "^$" nil t) (if (re-search-forward "^$" nil t)
(progn (progn