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

[PATCH] Don't ignore $from in batch send mode



Hi,

since changeset 5188, $from variable is not used in batch send mode.

# HG changeset patch
# User "Miroslav Lichvar <mlichvar@xxxxxxxxxx>"
# Date 1195647544 -3600
# Branch HEAD
# Node ID 5d3c4cb859770cc3d57d37440f1a1b0d4d2e35ca
# Parent  849daa6be9f56dc0e3505b9c7e9d18d1116a53cd
Don't ignore $from in batch send mode.

diff -r 849daa6be9f5 -r 5d3c4cb85977 send.c
--- a/send.c    Wed Nov 21 11:16:23 2007 +0100
+++ b/send.c    Wed Nov 21 13:19:04 2007 +0100
@@ -1220,7 +1220,8 @@ ci_send_message (int flags,               /* send mod
   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) 


Thanks,

-- 
Miroslav Lichvar