doc/reply: Clarify how reply-to header is handled

Current documentation and comments in the code do not correspond to
the actual code and tests in the test suite ("Un-munging Reply-To" in
T230-reply-to-sender.sh). Fix it.
This commit is contained in:
Michal Sojka 2015-12-29 22:55:40 +01:00 committed by David Bremner
parent 3dcd6e9a23
commit 557965b8fa
2 changed files with 5 additions and 3 deletions

View file

@ -13,8 +13,10 @@ DESCRIPTION
Constructs a reply template for a set of messages. Constructs a reply template for a set of messages.
To make replying to email easier, **notmuch reply** takes an existing To make replying to email easier, **notmuch reply** takes an existing
set of messages and constructs a suitable mail template. The Reply-to: set of messages and constructs a suitable mail template. Its To:
header (if any, otherwise From:) is used for the To: address. Unless address is set according to the original email in this way: if the
Reply-to: header is present and different from any To:/Cc: address it
is used, otherwise From: header is used. Unless
``--reply-to=sender`` is specified, values from the To: and Cc: headers ``--reply-to=sender`` is specified, values from the To: and Cc: headers
are copied, but not including any of the current user's email addresses are copied, but not including any of the current user's email addresses
(as configured in primary\_mail or other\_email in the .notmuch-config (as configured in primary\_mail or other\_email in the .notmuch-config

View file

@ -332,7 +332,7 @@ add_recipients_from_message (GMimeMessage *reply,
* field and use the From header. This ensures the original sender * field and use the From header. This ensures the original sender
* will get the reply even if not subscribed to the list. Note * will get the reply even if not subscribed to the list. Note
* that the address in the Reply-To header will always appear in * that the address in the Reply-To header will always appear in
* the reply. * the reply if reply_all is true.
*/ */
if (reply_to_header_is_redundant (message)) { if (reply_to_header_is_redundant (message)) {
reply_to_map[0].header = "from"; reply_to_map[0].header = "from";