mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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.
This commit is contained in:
parent
ac43a96988
commit
c86d77b16a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue