notmuch-index-message: Ignore more signature patterns.

Getting more sup-compatible all the time.
This commit is contained in:
Carl Worth 2009-10-14 07:24:28 -07:00
parent c0da89a8e0
commit 09f765ce18

View file

@ -310,7 +310,9 @@ gen_terms_body (Xapian::TermGenerator term_gen,
/* Skip signatures */ /* Skip signatures */
/* XXX: Should only do this if "near" the end of the message. */ /* 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; break;
gen_terms (term_gen, "body", body_line); gen_terms (term_gen, "body", body_line);