X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-index-message.cc;h=dd3fbb44687ba1859be696bf86ae9ee12a86b8dd;hp=3175d2d829b26b9c8db72d9d962bdf141cdb9851;hb=dcebf35ec9d177720a120fd8601f966d169d2edf;hpb=387a28281c8b8c8025e976d610cf0dae0f196894;ds=sidebyside diff --git a/notmuch-index-message.cc b/notmuch-index-message.cc index 3175d2d8..dd3fbb44 100644 --- a/notmuch-index-message.cc +++ b/notmuch-index-message.cc @@ -486,6 +486,10 @@ gen_terms_body_str (Xapian::TermGenerator term_gen, while (*next_line == '\n') next_line++; + /* Skip blank lines. */ + if (line_end < line) + continue; + /* Skip lines that are quotes. */ if (*line == '>') continue;