Re: notmuch-reply doesn't use Reply-To

Subject: Re: notmuch-reply doesn't use Reply-To

Date: Wed, 23 Mar 2016 07:35:12 -0300

To: Jani Nikula, Damien Cassou, notmuch@notmuchmail.org

Cc:

From: David Bremner


Jani Nikula <jani@nikula.org> writes:

>>
>> Here is the reply message, and it does not contain the address in Reply-To.
>
> This was true way back when notmuch reply only knew about reply all. For
> --reply-to=sender, it's broken. The simplest "fix" might be
>
> diff --git a/notmuch-reply.c b/notmuch-reply.c
> index 6df54fc992bb..ed0f9cca5c00 100644
> --- a/notmuch-reply.c
> +++ b/notmuch-reply.c
> @@ -334,7 +334,7 @@ add_recipients_from_message (GMimeMessage *reply,
>       * that the address in the Reply-To header will always appear in
>       * the reply.
>       */
> -    if (reply_to_header_is_redundant (message)) {
> +    if (reply_to_header_is_redundant (message) && reply_all) {
>         reply_to_map[0].header = "from";
>         reply_to_map[0].fallback = NULL;
>      }

I'm going to mark this fixed for now, since the docs have now been
updated to match the behaviour.

d

Thread: