> 在 2017年5月8日,12:11,Junio C Hamano 写道:
>
> Two suggestions.
>
> (1) I do not think $smtp is always valid when we come here; it is
> unsafe to unconditionally say $smtp->quit like this patch does.
>
>$smtp->quit if defined $smtp;
>
> may help codepaths like $dry_run and also the c
xiaoqiang zhao writes:
> @@ -1664,6 +1674,14 @@ foreach my $t (@files) {
> }
> }
> $message_id = undef;
> + $num_sent++;
> + if ($num_sent == $batch_size) {
> + $num_sent = 0;
> + $smtp->quit;
> + $smtp = undef;
> +
Some email servers (e.g. smtp.163.com) limit the number emails to be
sent per session(connection) and this will lead to a faliure when
sending many messages.
Teach send-email to disconnect after sending a number of messages
(configurable via the --batch-size= option), wait for a few
seconds (confi
3 matches
Mail list logo