]> granicus.if.org Git - mutt/commitdiff
Don't ignore $from in batch send mode.
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 21 Nov 2007 12:19:04 +0000 (13:19 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 21 Nov 2007 12:19:04 +0000 (13:19 +0100)
send.c

diff --git a/send.c b/send.c
index 0c2b4426532271d0308de35f75db8a1977cfaada..cd4d3617dc45b7994cb9d1aeaee4e0485c89e73c 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1220,7 +1220,8 @@ ci_send_message (int flags,               /* send mode */
   if (!msg->env->from && option (OPTUSEFROM) && !(flags & (SENDPOSTPONED|SENDRESEND)))
   {
     msg->env->from = mutt_default_from ();
-    killfrom = 1;      /* $use_from will be re-checked after send-hooks */
+    if (!(flags & SENDBATCH))
+      killfrom = 1;    /* $use_from will be re-checked after send-hooks */
   }
 
   if (flags & SENDBATCH)