]> git.notmuchmail.org Git - notmuch/commitdiff
Insert signature into replies
authorKeith Packard <keithp@keithp.com>
Sat, 21 Nov 2009 04:57:35 +0000 (20:57 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 23 Nov 2009 00:28:29 +0000 (01:28 +0100)
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>
notmuch.el

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