From: Zhaoxiangqiang <zxq_yx_007@163.com>
To: gitster@pobox.com
Cc: mst@kernel.org, pbonzini@redhat.com, mina86@mina86.com,
artagnon@gmail.com, avarab@gmail.com, git@vger.kernel.org,
viktorin@rehivetech.com
Subject: Re: [PATCH v5] send-email: --batch-size to work around some SMTP server limit
Date: Mon, 22 May 2017 03:19:02 +0000 [thread overview]
Message-ID: <cfm22a.oqc3vr.1hgearw-qmf@mail> (raw)
In-Reply-To: <xmqqlgpppri7.fsf@gitster.mtv.corp.google.com>
Junio C Hamano 于 2017 年 5 月 22 日 星期一 写道:
> I think this is almost perfect.
>
> I'd propose squashing the patch below to
>
> - Add cross reference between config and option
>
> - Spell configuration variables in camelCase to mimic other
> sendemail.* variables
>
> - Spell SMTP in all caps to mimic other parts of the manual
>
> - Suggest use of credential helper in the document to help the end
> users, not in the proposed log message.
>
> If you are fine with all of these changes, there is no need to
> resend (you can say so and I can locally squash these in). Of
> course, anyone is very welcome to point out documentation bugs I may
> be introducing with this patch.
>
> Thanks.
>
> -- >8 --
> Subject: fixup! send-email: --batch-size to work around some SMTP server limit
>
> 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=<num> option), wait for a few
> seconds (configurable via the --relogin-delay=<seconds> option) and
> reconnect, to work around such a limit.
>
> Also add two configuration variables to give these options the default.
>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
> ---
> Documentation/config.txt | 8 +++++---
> Documentation/git-send-email.txt | 12 ++++++++----
> 2 files changed, 13 insertions(+), 7 deletions(-)
>
It's fine with me, just go ahead.
Thank you Hamano!
> diff --git a/Documentation/config.txt b/Documentation/config.txt
> index a13315ed69..ee4a111878 100644
> --- a/Documentation/config.txt
> +++ b/Documentation/config.txt
> @@ -2914,13 +2914,15 @@ sendemail.xmailer::
> sendemail.signedoffcc (deprecated)::
> Deprecated alias for `sendemail.signedoffbycc`.
>
> -sendemail.smtpbatchsize::
> +sendemail.smtpBatchSize::
> Number of messages to be sent per connection, after that a relogin
> - will happen. if the value is 0 or undefined, send all messages in
> + will happen. If the value is 0 or undefined, send all messages in
> one connection.
> + See also the `--batch-size` option of linkgit:git-send-email[1].
>
> -sendemail.smtprelogindelay::
> +sendemail.smtpReloginDelay::
> Seconds wait before reconnecting to smtp server.
> + See also the `--relogin-delay` option of linkgit:git-send-email[1].
>
> showbranch.default::
> The default set of branches for linkgit:git-show-branch[1].
> diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
> index 5380d8c956..79b418bfa5 100644
> --- a/Documentation/git-send-email.txt
> +++ b/Documentation/git-send-email.txt
> @@ -250,14 +250,18 @@ must be used for each option.
>
> --batch-size=<num>::
> 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
> + sent per session (connection) and this will lead to a faliure when
> sending many messages. With this option, send-email will disconnect after
> sending $<num> messages and wait for a few seconds (see --relogin-delay)
> - and reconnect, to work around such a limit.
> + and reconnect, to work around such a limit. You may want to
> + use some form of credential helper to avoid having to retype
> + your password every time this happens. Defaults to the
> + `sendemail.smtpBatchSize` configuration variable.
>
> --relogin-delay=<int>::
> - Waiting $<int> seconds before reconnecting to smtp server. Used together
> - with --batch-size option.
> + Waiting $<int> seconds before reconnecting to SMTP server. Used together
> + with --batch-size option. Defaults to the `sendemail.smtpReloginDelay`
> + configuration variable.
>
> Automating
> ~~~~~~~~~~
> --
> 2.13.0-440-g3ce6d2d5b8
>
>
next prev parent reply other threads:[~2017-05-22 3:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-21 12:59 [PATCH v5] send-email: --batch-size to work around some SMTP server limit xiaoqiang zhao
2017-05-22 2:14 ` Junio C Hamano
2017-05-22 3:19 ` Zhaoxiangqiang [this message]
2018-02-07 19:45 ` [PATCH] send-email: have default batch size when relogin delay is given Stefan Beller
2018-02-07 19:50 ` Eric Sunshine
2018-02-07 23:43 ` [PATCH] send-email: error out when relogin delay is missing Stefan Beller
2018-02-08 5:45 ` xiaoqiang zhao
2018-02-08 8:08 ` Eric Sunshine
2018-02-08 18:21 ` Stefan Beller
2018-02-08 22:00 ` Eric Sunshine
2018-02-12 19:44 ` Stefan Beller
2017-05-22 9:26 ` [PATCH v5] send-email: --batch-size to work around some SMTP server limit Ævar Arnfjörð Bjarmason
2017-05-23 7:46 ` Junio C Hamano
2017-05-23 8:30 ` Jan Viktorin
2017-05-23 12:55 ` 赵小强
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cfm22a.oqc3vr.1hgearw-qmf@mail \
--to=zxq_yx_007@163.com \
--cc=artagnon@gmail.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mina86@mina86.com \
--cc=mst@kernel.org \
--cc=pbonzini@redhat.com \
--cc=viktorin@rehivetech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).