diff options
author | Stewart Smith <stewart@flamingspork.com> | 2011-05-17 12:10:32 +1000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-06-10 17:03:14 -0700 |
commit | c86d77b16ad03903c6ccf9e5cd18f477f2e5bf63 (patch) | |
tree | 20180070f32c3982d973e39bf673075be47c4be4 | |
parent | ac43a96988091d1ac7356e618b496ff8eef5a31c (diff) |
Fix appending of Received headers
We're not properly concatenating the Received headers if we parse them
while requesting a header that isn't Received.
this fixes notmuch-reply address detection in a bunch of situations.
-rw-r--r-- | lib/message-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/message-file.c b/lib/message-file.c index 99505c11..915aba8b 100644 --- a/lib/message-file.c +++ b/lib/message-file.c @@ -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); |