<<< Date Index >>>     <<< Thread Index >>>

Re: Fwd: Re: group-reply - bug or feature?



On 2005-09-21 15:05:08 -0400, Derek Martin wrote:

> Well...  I figured out what is causing it.  The problem occurs
> when you have set metoo=no in your .muttrc, and you reply to
> yourself.  If you set metoo=yes, mutt will copy your address into
> the To: field as expected.

Thanks for tracking this down.

How about this patch?

diff -u -r3.41 send.c
--- send.c      17 Sep 2005 20:46:11 -0000      3.41
+++ send.c      21 Sep 2005 19:25:16 -0000
@@ -589,6 +589,12 @@
   env->to = mutt_remove_duplicates (env->to);
   env->cc = mutt_remove_duplicates (env->cc);
   env->cc = mutt_remove_xrefs (env->to, env->cc);
+  
+  if (env->cc && !env->to)
+  {
+    env->to = env->cc;
+    env->cc = NULL;
+  }
 }
 
 void mutt_make_forward_subject (ENVELOPE *env, CONTEXT *ctx, HEADER *cur)



-- 
Thomas Roessler · Personal soap box at <http://log.does-not-exist.org/>.