]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message-file.c
lib: Expose query debug output via an environment variable
[notmuch] / lib / message-file.c
index 99505c117b9d9d9bba1efe91dc701a11dbba3bf5..915aba8bf97bb1b1e1251c3a3c4a161d81912bd8 100644 (file)
@@ -329,7 +329,7 @@ notmuch_message_file_get_header (notmuch_message_file_t *message,
        /* we treat the Received: header special - we want to concat ALL of 
         * the Received: headers we encounter.
         * for everything else we return the first instance of a header */
-       if (is_received) {
+       if (strcasecmp(header, "received") == 0) {
            if (header_sofar == NULL) {
                /* first Received: header we encountered; just add it */
                g_hash_table_insert (message->headers, header, decoded_value);