aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-14 16:38:21 -0700
committerCarl Worth <cworth@cworth.org>2009-10-14 16:38:21 -0700
commit784779fb6759a0a3990604befeb5e5ee7e7d1145 (patch)
tree867279cc448a2cd8d78e307f983d394b793684c1
parent30ed705fda4647a19ad243c9301187bb45bf9de8 (diff)
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.
-rw-r--r--notmuch-index-message.cc4
1 files changed, 2 insertions, 2 deletions
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. */