]> granicus.if.org Git - mutt/commitdiff
Enable $reply_self for group-reply, even with $metoo unset.
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 28 Sep 2017 18:57:56 +0000 (11:57 -0700)
committerRoger Pau Monne <roger.pau@citrix.com>
Thu, 28 Sep 2017 18:57:56 +0000 (11:57 -0700)
For a (r)eply, the $metoo variable does not have any effect because
there is a single recipient.

However with (g)roup reply, the To was initially set to the sender,
but subsequently removed my $nometoo.  The empty To line is then
replaced with the Cc line, resulting in a (logically correct but)
surprising outcome.

Change the behavior such that $nometoo will not strip a single To
recipient when $reply_self is set.

send.c

diff --git a/send.c b/send.c
index 30821eccb211427df4f14987403aa68780ae03de..cae3bb08bba5e50a189d1b7f3dbd854cfc61d8b4 100644 (file)
--- a/send.c
+++ b/send.c
@@ -592,7 +592,7 @@ void mutt_fix_reply_recipients (ENVELOPE *env)
      * the user is the only recipient, it ends up on the TO: field
      */
     env->cc = remove_user (env->cc, (env->to == NULL));
-    env->to = remove_user (env->to, (env->cc == NULL));
+    env->to = remove_user (env->to, (env->cc == NULL) || option (OPTREPLYSELF));
   }
   
   /* the CC field can get cluttered, especially with lists */