git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] send-email: new option to walkaround email server limits

From
Junio C Hamano <gitster@pobox.com>
Date
May 1, 2017, 01:54 UTC
Message-ID
<xmqqo9vdiboz.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170429122632.7122-1-zxq_yx_007@163.com>
xiaoqiang zhao <zxq_yx_007@163.com> writes:
> Some email server(e.g. smtp.163.com) limits a fixed number emails to be send per
> session(connection) and this will lead to a send faliure.
That sounds painful.
> With --split <num> option, a auto reconnection will occur when number of sended
> email reaches <num> and the problem is solved.
Two nits (other than s/sended/sent/ and s/$send_count/$num_sent/):
 - "--split" sounds as if you are splitting a single large message
   into multiple pieces, which of course is not what is going on
   here.  We need to find a better name for the option.  Perhaps
   "--batch-size=<num>", "--max-messages-per-connection=<num>" or
   something?
 - The code seems to do the "logging out and the logging back in"
   dance without any delay in between.  Is it something we want to
   consider to add a small (possibly configurable) delay in between?
Thanks.
Previous: xiaoqiang zhaoNext: 赵小强
Message 2 of 9 in “send-email: new option to walkaround email server limits”
  1. send-email: new option to walkaround email server limitsxiaoqiang zhao, Apr 29, 2017
  2. Junio C HamanoMay 1, 2017
  3. 赵小强May 1, 2017
  4. Ævar Arnfjörð BjarmasonMay 2, 2017
  5. Junio C HamanoMay 4, 2017
  6. Ramkumar RamachandraMay 4, 2017
  7. Ævar Arnfjörð BjarmasonMay 4, 2017
  8. Paolo BonziniMay 2, 2017
  9. 赵小强May 4, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.