]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch-index-message: Ignore more signature patterns.
authorCarl Worth <cworth@cworth.org>
Wed, 14 Oct 2009 14:24:28 +0000 (07:24 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 14 Oct 2009 14:24:28 +0000 (07:24 -0700)
Getting more sup-compatible all the time.

notmuch-index-message.cc

index a0faf442dbf9ef1c04910046e3560c90df50f7a8..561cb3a47278212e19fdacd6748953eb27e2570a 100644 (file)
@@ -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);