]> granicus.if.org Git - mutt/commitdiff
Fix #2168.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 5 Sep 2006 08:57:37 +0000 (08:57 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 5 Sep 2006 08:57:37 +0000 (08:57 +0000)
send.c

diff --git a/send.c b/send.c
index e9ec1574e5732630f68692c042b39f0c98bcdc23..9b35e194d7eaa8865c7ef9c42bb367359dfbb1ba 100644 (file)
--- a/send.c
+++ b/send.c
@@ -574,8 +574,6 @@ LIST *mutt_make_references(ENVELOPE *e)
 
 void mutt_fix_reply_recipients (ENVELOPE *env)
 {
-  mutt_expand_aliases_env (env);
-
   if (! option (OPTMETOO))
   {
     /* the order is important here.  do the CC: first so that if the
@@ -1213,7 +1211,10 @@ ci_send_message (int flags,              /* send mode */
       process_user_recips (msg->env);
 
     /* Expand aliases and remove duplicates/crossrefs */
-    mutt_fix_reply_recipients (msg->env);
+    mutt_expand_aliases_env (msg->env);
+    
+    if (flags & SENDREPLY)
+      mutt_fix_reply_recipients (msg->env);
 
     if (! (flags & SENDMAILX) &&
        ! (option (OPTAUTOEDIT) && option (OPTEDITHDRS)) &&