aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-14 07:24:28 -0700
committerCarl Worth <cworth@cworth.org>2009-10-14 07:24:28 -0700
commit09f765ce186e81bd9eae85910d0444000fd26277 (patch)
tree817f8ffbeb541b30c2ed264a5a1b9d4c8cefbd66
parentc0da89a8e02190f172e6f53073827bbdf91d60eb (diff)
notmuch-index-message: Ignore more signature patterns.
Getting more sup-compatible all the time.
-rw-r--r--notmuch-index-message.cc4
1 files changed, 3 insertions, 1 deletions
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);