From: Junio C Hamano Date: Mon, 01 May 2017 01:54:20 GMT Subject: Re: [PATCH] send-email: new option to walkaround email server limits Message-ID: In-Reply-To: <20170429122632.7122-1-zxq_yx_007@163.com> xiaoqiang zhao 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 option, a auto reconnection will occur when number of sended > email reaches 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=", "--max-messages-per-connection=" 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.