From 3dac7305c24220ec7a46db8d08d7b5eb0401d02d Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@cworth.org>
Date: Mon, 26 Apr 2010 23:12:58 -0700
Subject: [PATCH] emacs: Use message-signature-separator rather than hard-coded
 string.

It's possible that the user has instructed message-mode to use some
other separator. If so, then that's what we should look for when
looking for the signature.

Thanks to David Edmondson <dme@dme.org> for pointing this out.
---
 emacs/notmuch-mua.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 9fbb94a6..bd06e3cb 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -101,7 +101,7 @@ list."
     ;; insert the message body - but put it in front of the signature
     ;; if one is present
     (goto-char (point-max))
-    (if (re-search-backward "-- " nil t)
+    (if (re-search-backward message-signature-separator nil t)
 	  (forward-line -1)
       (goto-char (point-max)))
     (insert body))
-- 
2.45.2