]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
lib: index the content-type of the parts of encrypted messages
[notmuch] / lib / message.cc
index 63d67cfe84947de37ea03564f99d451d6382d40c..0e3b5a4f1510722729d60e73322baf2d529219bc 100644 (file)
@@ -2034,7 +2034,9 @@ notmuch_message_reindex (notmuch_message_t *message,
            thread_id = orig_thread_id;
 
        _notmuch_message_add_term (message, "thread", thread_id);
-       _notmuch_message_set_header_values (message, date, from, subject);
+       /* Take header values only from first filename */
+       if (found == 0)
+           _notmuch_message_set_header_values (message, date, from, subject);
 
        ret = _notmuch_message_index_file (message, message_file);