From: Miroslav Lichvar Date: Wed, 21 Nov 2007 12:19:04 +0000 (+0100) Subject: Don't ignore $from in batch send mode. X-Git-Tag: mutt-1-5-18-rel~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17aa582bb25105fdb6678b402bb53aa2680f441e;p=mutt Don't ignore $from in batch send mode. --- diff --git a/send.c b/send.c index 0c2b4426..cd4d3617 100644 --- 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)