mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-30 14:44:11 +01:00
36416c74e0
As Daniel Kahn Gillmor <dkg@fifthhorseman.net> reports in id:87d1ngv95p.fsf@alice.fifthhorseman.net, notmuch show combines multiple Cc: fields into one, while notmuch reply does not. While such messages are in violation of RFC 5322, it would be reasonable to expect notmuch to be consistent. Add a known broken test to document this expectation. This also starts a new "broken" corpus for messages which are broken. Details: The original message is formatted using the message printing in notmuch-show.c. For Cc:, it uses g_mime_message_get_recipients(), which apparently combines all Cc: fields into one internally. The addresses in the reply headers, OTOH, are based on headers queried through libnotmuch. It boils down to g_mime_object_get_header() in lib/message-file.c, which returns only the first occurence of header.
9 lines
249 B
Text
9 lines
249 B
Text
From: Alice <alice@example.org>
|
|
To: Daniel <daniel@example.org>
|
|
Cc: Bob <bob@example.org>
|
|
Subject: wowsers!
|
|
cc: Charles <charles@example.org>
|
|
Message-Id: <multiple-cc@example.org>
|
|
Date: Thu, 16 Jun 2016 22:14:41 -0400
|
|
|
|
Note the Cc: and cc: headers.
|