changeset: 7171:bc43a7e56a42 user: Roger Pau Monne <roger....@citrix.com> date: Thu Sep 28 11:57:56 2017 -0700 link: http://dev.mutt.org/hg/mutt/rev/bc43a7e56a42
Enable $reply_self for group-reply, even with $metoo unset. 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. diffs (12 lines): diff -r e98ad5446640 -r bc43a7e56a42 send.c --- a/send.c Wed Sep 27 13:45:36 2017 -0700 +++ b/send.c Thu Sep 28 11:57:56 2017 -0700 @@ -592,7 +592,7 @@ * 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 */