From 09f765ce186e81bd9eae85910d0444000fd26277 Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@cworth.org>
Date: Wed, 14 Oct 2009 07:24:28 -0700
Subject: [PATCH] notmuch-index-message: Ignore more signature patterns.

Getting more sup-compatible all the time.
---
 notmuch-index-message.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/notmuch-index-message.cc b/notmuch-index-message.cc
index a0faf442..561cb3a4 100644
--- a/notmuch-index-message.cc
+++ b/notmuch-index-message.cc
@@ -310,7 +310,9 @@ gen_terms_body (Xapian::TermGenerator term_gen,
 
 	/* Skip signatures */
 	/* XXX: Should only do this if "near" the end of the message. */
-	if (strncmp (body_line, "-- ", 3) == 0)
+	if (strncmp (body_line, "-- ", 3) == 0 ||
+	    strncmp (body_line, "----------", 10) == 0 ||
+	    strncmp (body_line, "__________", 10) == 0)
 	    break;
 
 	gen_terms (term_gen, "body", body_line);
-- 
2.45.2