[sup-compat] Don't index mime parts with content-disposition of attachment
[notmuch] / notmuch-index-message.cc
index 2d0bfc28680312753018cc43bb7c628a8b7828f6..6795430b8c72aa8d8e8e34c6027c561851366a92 100644 (file)
@@ -444,6 +444,7 @@ gen_terms_part (Xapian::TermGenerator term_gen,
        strcmp (disposition->disposition, GMIME_DISPOSITION_ATTACHMENT) == 0)
     {
        add_term (term_gen.get_document (), "label", "attachment");
+       return;
     }
 
     byte_array = g_byte_array_new ();