From: Junio C Hamano <gitster@pobox.com>
To: xiaoqiang zhao <zxq_yx_007@163.com>
Cc: git@vger.kernel.org, viktorin@rehivetech.com, mst@kernel.org,
pbonzini@redhat.com, mina86@mina86.com, artagnon@gmail.com,
avarab@gmail.com
Subject: Re: [PATCH v4] send-email: --batch-size to work around some SMTP server limit
Date: Mon, 15 May 2017 12:59:47 +0900 [thread overview]
Message-ID: <xmqqfug6wz0s.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <20170513015726.20281-1-zxq_yx_007@163.com> (xiaoqiang zhao's message of "Sat, 13 May 2017 09:57:26 +0800")
xiaoqiang zhao <zxq_yx_007@163.com> writes:
> 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 this two configure option for git config command.
s/configure/configuration/; "for git config command" is better left
unsaid (too obvious).
> Note:
> Re-authentication will happen every $<batch-size> messages, so it
> will be much more acceptable if you use some form of credential helper
> (e.g. the 'sendemail.smtppass' config option), otherwise you will have
> to retype password every time when asked.
I think this deserves to be in the end-user documentation (i.e. the
part of your patch that updates Documentation/git-send-email.txt).
Other than that, looking good ;-)
Thanks.
> Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>
> ---
> contrib/completion/git-completion.bash | 2 ++
> git-send-email.perl | 18 ++++++++++++++++++
> 2 files changed, 20 insertions(+)
next prev parent reply other threads:[~2017-05-15 3:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-13 1:57 [PATCH v4] send-email: --batch-size to work around some SMTP server limit xiaoqiang zhao
2017-05-15 3:59 ` Junio C Hamano [this message]
2017-05-16 23:49 ` Junio C Hamano
2017-05-17 0:03 ` 赵小强
2017-05-16 12:10 ` Jan Viktorin
2017-05-16 13:55 ` 赵小强
2017-05-16 17:43 ` Ævar Arnfjörð Bjarmason
2017-05-17 0:04 ` 赵小强
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqfug6wz0s.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=artagnon@gmail.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=mina86@mina86.com \
--cc=mst@kernel.org \
--cc=pbonzini@redhat.com \
--cc=viktorin@rehivetech.com \
--cc=zxq_yx_007@163.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.