From: Carl Worth Date: Wed, 14 Oct 2009 23:38:21 +0000 (-0700) Subject: Avoid trimming initial whitespace while looking for signatures. X-Git-Tag: 0.1~860 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=784779fb6759a0a3990604befeb5e5ee7e7d1145;p=notmuch.git Avoid trimming initial whitespace while looking for signatures. I ran into a message with an indented stack trace that my indexer was mistaking for a signature. --- diff --git a/notmuch-index-message.cc b/notmuch-index-message.cc index 3270aac7..79ec81e4 100644 --- a/notmuch-index-message.cc +++ b/notmuch-index-message.cc @@ -379,8 +379,8 @@ gen_terms_body_str (Xapian::TermGenerator term_gen, } line_end = next_line - 1; - /* Trim whitespace. */ - while (*next_line && isspace (*next_line)) + /* Get to the next non-blank line. */ + while (*next_line == '\n') next_line++; /* Skip lines that are quotes. */