[notmuch] [PATCH] Insert signature into replies
authorKeith Packard <keithp@keithp.com>
Sat, 21 Nov 2009 04:57:35 +0000 (20:57 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:37 +0000 (09:35 -0800)
40/13aac69cd63666ce1f6a8b5b287e6bf5682223 [new file with mode: 0644]

diff --git a/40/13aac69cd63666ce1f6a8b5b287e6bf5682223 b/40/13aac69cd63666ce1f6a8b5b287e6bf5682223
new file mode 100644 (file)
index 0000000..fc74320
--- /dev/null
@@ -0,0 +1,73 @@
+Return-Path: <keithp@keithp.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 747FC431FBC\r
+       for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 20:57:41 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Avl+7m7cGWBa for <notmuch@notmuchmail.org>;\r
+       Fri, 20 Nov 2009 20:57:40 -0800 (PST)\r
+Received: from keithp.com (home.keithp.com [63.227.221.253])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8667C431FAE\r
+       for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 20:57:40 -0800 (PST)\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id F41D1760220\r
+       for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 20:57:39 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at keithp.com\r
+Received: from keithp.com ([127.0.0.1])\r
+       by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024)\r
+       with LMTP id seNazHHDbOTa; Fri, 20 Nov 2009 20:57:37 -0800 (PST)\r
+Received: by keithp.com (Postfix, from userid 1033)\r
+       id 31976B9404B; Fri, 20 Nov 2009 20:57:37 -0800 (PST)\r
+Received: from koto.keithp.com (localhost [127.0.0.1])\r
+       by keithp.com (Postfix) with ESMTP id 2AE2876012C;\r
+       Fri, 20 Nov 2009 20:57:37 -0800 (PST)\r
+Received: by koto.keithp.com (Postfix, from userid 1488)\r
+       id C218C1982A1; Fri, 20 Nov 2009 20:57:36 -0800 (PST)\r
+From: Keith Packard <keithp@keithp.com>\r
+To: notmuch@notmuchmail.org\r
+Date: Fri, 20 Nov 2009 20:57:35 -0800\r
+Message-Id: <1258779455-17053-1-git-send-email-keithp@keithp.com>\r
+X-Mailer: git-send-email 1.6.5.2\r
+Subject: [notmuch] [PATCH] Insert signature into replies\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 21 Nov 2009 04:57:41 -0000\r
+\r
+When you compose a new message, message mode carefully inserts your\r
+mail signature at the bottom of the message; as notmuch constructs the\r
+reply all by itself, this doesn't happen then. Use the message mode\r
+function 'message-insert-signature' to add that to reply buffers.\r
+\r
+Signed-off-by: Keith Packard <keithp@keithp.com>\r
+---\r
+ notmuch.el |    1 +\r
+ 1 files changed, 1 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/notmuch.el b/notmuch.el\r
+index bed6a25..feb84ad 100644\r
+--- a/notmuch.el\r
++++ b/notmuch.el\r
+@@ -308,6 +308,7 @@ buffer."\r
+ (defun notmuch-reply (query-string)\r
+   (switch-to-buffer (generate-new-buffer "notmuch-draft"))\r
+   (call-process notmuch-command nil t nil "reply" query-string)\r
++  (message-insert-signature)\r
+   (goto-char (point-min))\r
+   (if (re-search-forward "^$" nil t)\r
+       (progn\r
+-- \r
+1.6.5.2\r
+\r