From unknown Thu Jun 19 14:14:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34177 <34177@debbugs.gnu.org> To: bug#34177 <34177@debbugs.gnu.org> Subject: Status: smtpmail.el aborts on transient errors Reply-To: bug#34177 <34177@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:14:11 +0000 retitle 34177 smtpmail.el aborts on transient errors reassign 34177 emacs submitter 34177 Brian Sniffen severity 34177 normal tag 34177 fixed moreinfo patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 23 07:10:34 2019 Received: (at submit) by debbugs.gnu.org; 23 Jan 2019 12:10:34 +0000 Received: from localhost ([127.0.0.1]:42100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmHMX-0004Sb-9O for submit@debbugs.gnu.org; Wed, 23 Jan 2019 07:10:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gmA1K-0007IN-Rp for submit@debbugs.gnu.org; Tue, 22 Jan 2019 23:20:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:43542) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmA1F-0006g6-FD for submit@debbugs.gnu.org; Tue, 22 Jan 2019 23:20:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmA1E-0002hf-L6 for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2019 23:20:05 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gm9r6-0000rU-3G for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2019 23:09:37 -0500 Received: from istari.evenmere.org ([136.248.125.194]:56914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gm9qp-0004pf-Ch for bug-gnu-emacs@gnu.org; Tue, 22 Jan 2019 23:09:26 -0500 Received: by istari.evenmere.org (Postfix, from userid 113) id 70B0D1E0067; Tue, 22 Jan 2019 23:09:12 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=evenmere.org; s=default; t=1548216552; bh=aIrqTTKyxGv9PDoDKJP0e4wYS0it0qLgRJCt8fZaqsY=; h=From:Date:Subject:To:From; b=xA3ViSV79LxGnra4Ijb83DYERCbcjR/xtV5gt+kDBbp8S2GLSPaegPmlGGx85Gfq8 uFYfQD9VsV2U1C31NzG9PstT9LkWiTX5WU4Dln3yXm6sNJXavoX7zKJxhFdOkPR+aJ zK14fge2SSk6xJcYZbk/3zNuMs7z8nZTW4NhOhJY= Received: from [192.168.0.34] (pool-108-7-216-63.bstnma.fios.verizon.net [108.7.216.63]) by istari.evenmere.org (Postfix) with ESMTPSA id 345251E0067; Tue, 22 Jan 2019 23:09:10 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=evenmere.org; s=default; t=1548216550; bh=aIrqTTKyxGv9PDoDKJP0e4wYS0it0qLgRJCt8fZaqsY=; h=From:Date:Subject:To:From; b=OXBO/uW/gfz7cx6SIvD+Akzw7nVSjNGUFPMBMiVPR39lyKVfC+FBiCjFDmrgY1y8L F6LtT7YpQqOw8D/YtSlGFy2mmuZ0HpdK70yGkougsmFHqmuoWrJBps31SgWt08hmSt yCfrpAwn14CXyyeTUUKjxyKVz5ld/TLbhapv4Lyo= From: Brian Sniffen Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Tue, 22 Jan 2019 23:09:08 -0500 Subject: smtpmail.el aborts on transient errors Message-Id: <70A0D375-0530-45D8-B4A4-B7BDF009749D@evenmere.org> To: bug-gnu-emacs@gnu.org X-Mailer: iPad Mail (16D39) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 136.248.125.194 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 23 Jan 2019 07:10:30 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) smtpmail.el treats all return codes over 400 as errors, and aborts. But RFC= 821 and successors call the 400-series =E2=80=9Ctransient=E2=80=9D errors a= nd suggest retrying immediately. Some mail servers, including current MS Ex= change, use 400-series errors for load limiting. The user can just repeat C= -c C-c until the mail goes through... or Emacs SMTPmail could loop until the= server accepts it. Retrying is a little tricky in the case of multipart commands like LOGIN, bu= t in general it=E2=80=99s safe to loop for seconds on any command. --=20 Brian Sniffen= From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 14:24:30 2019 Received: (at 34177) by debbugs.gnu.org; 9 Jul 2019 18:24:30 +0000 Received: from localhost ([127.0.0.1]:34171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkumy-000780-Ud for submit@debbugs.gnu.org; Tue, 09 Jul 2019 14:24:30 -0400 Received: from quimby.gnus.org ([80.91.231.51]:51120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkumw-00077q-Un for 34177@debbugs.gnu.org; Tue, 09 Jul 2019 14:24:28 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkump-00086j-Kl; Tue, 09 Jul 2019 20:24:22 +0200 From: Lars Ingebrigtsen To: Brian Sniffen Subject: Re: bug#34177: smtpmail.el aborts on transient errors References: <70A0D375-0530-45D8-B4A4-B7BDF009749D@evenmere.org> Date: Tue, 09 Jul 2019 20:24:19 +0200 In-Reply-To: <70A0D375-0530-45D8-B4A4-B7BDF009749D@evenmere.org> (Brian Sniffen's message of "Tue, 22 Jan 2019 23:09:08 -0500") Message-ID: <87h87vqd64.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Brian Sniffen writes: > smtpmail.el treats all return codes over 400 as errors, and aborts. > But RFC 821 and successors call the 400-series “transient” errors and > suggest retrying immediately. Some mail servers, inc [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34177 Cc: 34177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Brian Sniffen writes: > smtpmail.el treats all return codes over 400 as errors, and aborts. > But RFC 821 and successors call the 400-series =E2=80=9Ctransient=E2=80= =9D errors and > suggest retrying immediately. Some mail servers, including current MS > Exchange, use 400-series errors for load limiting. The user can just > repeat C-c C-c until the mail goes through... or Emacs SMTPmail could > loop until the server accepts it. > > Retrying is a little tricky in the case of multipart commands like > LOGIN, but in general it=E2=80=99s safe to loop for seconds on any comman= d. This is what RFC 5321 says: https://tools.ietf.org/html/rfc5321#section-4.2.1 4yz Transient Negative Completion reply The command was not accepted, and the requested action did not occur. However, the error condition is temporary, and the action may be requested again. The sender should return to the beginning of the command sequence (if any). It is difficult to assign a meaning to "transient" when two different sites (receiver- and sender-SMTP agents) must agree on the interpretation. Each reply in this category might have a different time value, but the SMTP client SHOULD try again. A rule of thumb to determine whether a reply fits into the 4yz or the 5yz category (see below) is that replies are 4yz if they can be successful if repeated without any change in command form or in properties of the sender or receiver (that is, the command is repeated identically and the receiver does not put up a new implementation). So, indeed, smtpmail SHOULD try resending when given a 4xx response code... but presumably not forever, either. It's a bit difficult to test, though. Does the following patch work for you? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=retry.patch diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 741c4393e6..d9930491d9 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el @@ -658,10 +658,12 @@ smtpmail-user-mail-address user-mail-address)))) (defun smtpmail-via-smtp (recipient smtpmail-text-buffer - &optional ask-for-password) + &optional ask-for-password + send-attempts) (unless smtpmail-smtp-server (smtpmail-query-smtp-server)) (let ((process nil) + (send-attempts (or send-attempts 1)) (host (or smtpmail-smtp-server (error "`smtpmail-smtp-server' not defined"))) (port smtpmail-smtp-service) @@ -817,6 +819,20 @@ smtpmail-via-smtp ((smtpmail-ok-p (setq result (smtpmail-read-response process))) ;; Success. ) + ((and (numberp (car result)) + (<= 400 (car result) 499) + (< send-attempts 10)) + ;; Retry on getting a transient 4xx code; see + ;; https://tools.ietf.org/html/rfc5321#section-4.2.1 + (ignore-errors + (smtpmail-send-command process "QUIT") + (smtpmail-read-response process)) + (delete-process process) + (setq process nil) + (throw 'done + (smtpmail-via-smtp recipient smtpmail-text-buffer + ask-for-password + (1+ send-attempts)))) ((and auth-mechanisms (not ask-for-password) (eq (car result) 530)) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 14:24:31 2019 Received: (at control) by debbugs.gnu.org; 9 Jul 2019 18:24:32 +0000 Received: from localhost ([127.0.0.1]:34174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkun1-00078F-JF for submit@debbugs.gnu.org; Tue, 09 Jul 2019 14:24:31 -0400 Received: from quimby.gnus.org ([80.91.231.51]:51134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkumz-00077z-8R for control@debbugs.gnu.org; Tue, 09 Jul 2019 14:24:30 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkumw-00086t-Pn for control@debbugs.gnu.org; Tue, 09 Jul 2019 20:24:28 +0200 Date: Tue, 09 Jul 2019 20:24:26 +0200 Message-Id: <87ftnfqd5x.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #34177 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 34177 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 34177 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 14:24:34 2019 Received: (at control) by debbugs.gnu.org; 9 Jul 2019 18:24:34 +0000 Received: from localhost ([127.0.0.1]:34177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkun3-00078U-UI for submit@debbugs.gnu.org; Tue, 09 Jul 2019 14:24:34 -0400 Received: from quimby.gnus.org ([80.91.231.51]:51146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkun2-00078M-Ii for control@debbugs.gnu.org; Tue, 09 Jul 2019 14:24:32 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkun0-000872-1v for control@debbugs.gnu.org; Tue, 09 Jul 2019 20:24:31 +0200 Date: Tue, 09 Jul 2019 20:24:29 +0200 Message-Id: <87ef2zqd5u.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #34177 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 34177 + patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 34177 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 14:46:02 2019 Received: (at 34177) by debbugs.gnu.org; 9 Jul 2019 18:46:02 +0000 Received: from localhost ([127.0.0.1]:34203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkv7p-0002GD-Q5 for submit@debbugs.gnu.org; Tue, 09 Jul 2019 14:46:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkv7o-0002Ac-WF for 34177@debbugs.gnu.org; Tue, 09 Jul 2019 14:46:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hkv7g-0003fY-GI; Tue, 09 Jul 2019 14:45:53 -0400 Received: from [176.228.60.248] (port=1714 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hkv7e-0002lR-0w; Tue, 09 Jul 2019 14:45:51 -0400 Date: Tue, 09 Jul 2019 21:45:35 +0300 Message-Id: <83o9233v3k.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87h87vqd64.fsf@mouse.gnus.org> (message from Lars Ingebrigtsen on Tue, 09 Jul 2019 20:24:19 +0200) Subject: Re: bug#34177: smtpmail.el aborts on transient errors References: <70A0D375-0530-45D8-B4A4-B7BDF009749D@evenmere.org> <87h87vqd64.fsf@mouse.gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34177 Cc: bts@evenmere.org, 34177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Tue, 09 Jul 2019 20:24:19 +0200 > Cc: 34177@debbugs.gnu.org > > So, indeed, smtpmail SHOULD try resending when given a 4xx response > code... but presumably not forever, either. > > It's a bit difficult to test, though. Does the following patch work for > you? IMO, this should at least say in the echo area that it's retrying, probably with the number of retries. Bonus points for doing that from a separate thread or a timer. smtpmail locks up Emacs too much already, when the network is busy. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 15:42:45 2019 Received: (at 34177) by debbugs.gnu.org; 9 Jul 2019 19:42:45 +0000 Received: from localhost ([127.0.0.1]:34307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkw0j-0004x7-2P for submit@debbugs.gnu.org; Tue, 09 Jul 2019 15:42:45 -0400 Received: from quimby.gnus.org ([80.91.231.51]:52262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkw0h-0004wu-UE for 34177@debbugs.gnu.org; Tue, 09 Jul 2019 15:42:44 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkw0e-0000L2-Jj; Tue, 09 Jul 2019 21:42:42 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#34177: smtpmail.el aborts on transient errors References: <70A0D375-0530-45D8-B4A4-B7BDF009749D@evenmere.org> <87h87vqd64.fsf@mouse.gnus.org> <83o9233v3k.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEXz7MrFp4/q1ramXFUj HSMCAQI9K2BQJUtHNV/SwKh+QkL////+//79/PM2L2ise2eM+jl0AAAB+klEQVQ4jcXST2jTUBwH 8OBO4np4KmgRzJKLDN3pFSK5DOVn1Et6WWE30YYwPXSMZRTFy6BCC8JsL/rAIVJxl0HnTsLL0Hsm lHgaWxliCWRgtGTowD/xVev6MtOb4O/weD8+fHn8fjyBDijhn4Ldu7Zarc3ExC7A1yRYswbANgyA YwPAxgBGIqgMTnGAEEHdWlRBa5/lYK5UnrTmrMv3Gdzi4V6pdA3AgmUxijrD1HH+ACGPFu4UreK3 sFyuyGKkLuw//nLSYom7Kugz0qVcbmIfXk0USwDLKnhPz+R4WCG1VUIeq9DunODBFjYEWRgZZoCU WKL5OtVspbYUfUdcikFvckXPJ0NGz4pfkuBZMINEtrArHLhylTxA5KhwWBaktEQIWfwNQzjjvYMg i6SoEcJuEAQfePAYIBTC5z68ZeDrXqMjRShc+tGHVZxp+3pQj6qRGJ4/3QcbZcwLhWAWi/UoBrQK Bd8szGI0HmEe1pQg8LVCvo5CHIPtLkDwHnehzIE7ykYipHZIkGW55rLjXG8OxdT8efPjGxdj3OBW MqTuWP5FbWrTdsPxMR5w/uHN68+NikNtZz0GN174U8c9+MT9q1+QrqxcNU5q5t531jl9WKcd+7Yx nWo2x+IJSvdo2jSmj1B6EJ7QDQ0g+zewRY6Ska0kOFj/FX4CJhHSYm8wf+0AAAAASUVORK5CYII= Date: Tue, 09 Jul 2019 21:42:40 +0200 In-Reply-To: <83o9233v3k.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 09 Jul 2019 21:45:35 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > IMO, this should at least say in the echo area that it's retrying, > probably with the number of retries. Yup. And perhaps there should be a `(sleep-for 1)' in there... Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34177 Cc: bts@evenmere.org, 34177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > IMO, this should at least say in the echo area that it's retrying, > probably with the number of retries. Yup. And perhaps there should be a `(sleep-for 1)' in there... > Bonus points for doing that from a separate thread or a timer. > smtpmail locks up Emacs too much already, when the network is busy. Yeah, it'd be very, very nice if the entire thing was asynchronous. I vaguely remember somebody talking about trying to make the entire thing run from a separate thread (in Emacs versions with support for that)? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 17:49:15 2019 Received: (at 34177) by debbugs.gnu.org; 16 Sep 2019 21:49:15 +0000 Received: from localhost ([127.0.0.1]:51230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9yrz-0006qI-8i for submit@debbugs.gnu.org; Mon, 16 Sep 2019 17:49:15 -0400 Received: from quimby.gnus.org ([80.91.231.51]:40118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9yrx-0006q7-Nx for 34177@debbugs.gnu.org; Mon, 16 Sep 2019 17:49:14 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i9yrr-0006vz-UJ; Mon, 16 Sep 2019 23:49:11 +0200 From: Lars Ingebrigtsen To: Brian Sniffen Subject: Re: bug#34177: smtpmail.el aborts on transient errors References: <70A0D375-0530-45D8-B4A4-B7BDF009749D@evenmere.org> <87h87vqd64.fsf@mouse.gnus.org> Date: Mon, 16 Sep 2019 23:49:07 +0200 In-Reply-To: <87h87vqd64.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Tue, 09 Jul 2019 20:24:19 +0200") Message-ID: <87muf3q5d8.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > It's a bit difficult to test, though. Does the following patch work for > you? I got no response, but I've tried to "manually" step through it, and the patch seems to do its thing. It's not asynchronous, though, but it shouldn't make things worse for the normal case, and rewriti [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34177 Cc: 34177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > It's a bit difficult to test, though. Does the following patch work for > you? I got no response, but I've tried to "manually" step through it, and the patch seems to do its thing. It's not asynchronous, though, but it shouldn't make things worse for the normal case, and rewriting smtpmail to be asynchronous is a major task. So I applied the patch to Emacs 27. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 17:49:19 2019 Received: (at control) by debbugs.gnu.org; 16 Sep 2019 21:49:19 +0000 Received: from localhost ([127.0.0.1]:51233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9ys3-0006qX-Im for submit@debbugs.gnu.org; Mon, 16 Sep 2019 17:49:19 -0400 Received: from quimby.gnus.org ([80.91.231.51]:40132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9ys2-0006qQ-K3 for control@debbugs.gnu.org; Mon, 16 Sep 2019 17:49:18 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i9ys0-0006w7-0V for control@debbugs.gnu.org; Mon, 16 Sep 2019 23:49:17 +0200 Date: Mon, 16 Sep 2019 23:49:15 +0200 Message-Id: <87lfunq5d0.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #34177 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 34177 fixed close 34177 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 34177 fixed close 34177 27.1 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 19:26:35 2019 Received: (at 34177) by debbugs.gnu.org; 16 Sep 2019 23:26:35 +0000 Received: from localhost ([127.0.0.1]:51350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0OB-0005Bu-1g for submit@debbugs.gnu.org; Mon, 16 Sep 2019 19:26:35 -0400 Received: from st43p00im-ztdg10073201.me.com ([17.58.63.177]:55950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0FQ-0004tr-5x for 34177@debbugs.gnu.org; Mon, 16 Sep 2019 19:17:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1568675846; bh=Au5zLHkGSSaOFlm5IxfJkpTRXnDKxhJKwuP9+cX7PgE=; h=Content-Type:Subject:From:Date:Message-Id:To; b=v6WpvxFy0drbzXzQVKfhjC+dHENGydQGFL/bSISHp0jaSrNI5MZEpZDlknKInPOix oSzatzIwiNxdDaV/Eh4HIMMA2mdML8f7gSdWe+YeWVnW0goDFab5OcJ8UkoRieiLZG iLzJZIlvkcn2Ez6pxVMq3AE8LworNEXdnlvoCLFVTfKkAWVYz9GuaGB3LoMBqwq4B9 GnNuZT1eJ3TRVBKjjd6aLiOSkyUK5JIKlYNvLKEBdyb8V3Ry/u+46T9P5TZgLd4mqy 8cTmJOalbycfuI0h/slf7GOsr/AsCY3JgJoNpFpMpbjcJaT80T5hco6TE1qKq1QmRq UTT/iJdPrEsXw== Received: from [192.168.0.22] (pool-72-70-58-104.bstnma.fios.verizon.net [72.70.58.104]) by st43p00im-ztdg10073201.me.com (Postfix) with ESMTPSA id 603B222233D; Mon, 16 Sep 2019 23:17:26 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: bug#34177: smtpmail.el aborts on transient errors From: Brian Sniffen X-Mailer: iPhone Mail (16G102) In-Reply-To: <87muf3q5d8.fsf@gnus.org> Date: Mon, 16 Sep 2019 19:17:24 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <55197E44-680A-4C59-8D3B-F37FBC132979@me.com> References: <70A0D375-0530-45D8-B4A4-B7BDF009749D@evenmere.org> <87h87vqd64.fsf@mouse.gnus.org> <87muf3q5d8.fsf@gnus.org> To: Lars Ingebrigtsen X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-09-16_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=826 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909160221 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34177 X-Mailman-Approved-At: Mon, 16 Sep 2019 19:26:32 -0400 Cc: 34177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Oh! I did write back a little while ago. Let me try now from a different ad= dress. It seemed to reduce the problem greatly. Thank you! At a limit of 20= requests, it was gone. Can this be a customizable constant? --=20 Brian Sniffen > On Sep 16, 2019, at 5:49 PM, Lars Ingebrigtsen wrote: >=20 > Lars Ingebrigtsen writes: >=20 >> It's a bit difficult to test, though. Does the following patch work for >> you? >=20 > I got no response, but I've tried to "manually" step through it, and the > patch seems to do its thing. It's not asynchronous, though, but it > shouldn't make things worse for the normal case, and rewriting smtpmail > to be asynchronous is a major task. >=20 > So I applied the patch to Emacs 27. >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no >=20 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 19:27:18 2019 Received: (at 34177) by debbugs.gnu.org; 16 Sep 2019 23:27:18 +0000 Received: from localhost ([127.0.0.1]:51354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0Or-0005DZ-Qm for submit@debbugs.gnu.org; Mon, 16 Sep 2019 19:27:18 -0400 Received: from quimby.gnus.org ([80.91.231.51]:42028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0Oq-0005DO-2w for 34177@debbugs.gnu.org; Mon, 16 Sep 2019 19:27:16 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iA0Om-00082h-Ix; Tue, 17 Sep 2019 01:27:14 +0200 From: Lars Ingebrigtsen To: Brian Sniffen Subject: Re: bug#34177: smtpmail.el aborts on transient errors References: <70A0D375-0530-45D8-B4A4-B7BDF009749D@evenmere.org> <87h87vqd64.fsf@mouse.gnus.org> <87muf3q5d8.fsf@gnus.org> <55197E44-680A-4C59-8D3B-F37FBC132979@me.com> Date: Tue, 17 Sep 2019 01:27:12 +0200 In-Reply-To: <55197E44-680A-4C59-8D3B-F37FBC132979@me.com> (Brian Sniffen's message of "Mon, 16 Sep 2019 19:17:24 -0400") Message-ID: <87pnjzom9b.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Brian Sniffen writes: > Oh! I did write back a little while ago. Let me try now from a > different address. It seemed to reduce the problem greatly. Thank > you! At a limit of 20 requests, it was gone. Can this be a > cust [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34177 Cc: 34177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Brian Sniffen writes: > Oh! I did write back a little while ago. Let me try now from a > different address. It seemed to reduce the problem greatly. Thank > you! At a limit of 20 requests, it was gone. Can this be a > customizable constant? Sure; makes sense. I've now added smtpmail-retries to the trunk. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 17 02:18:54 2019 Received: (at 34177) by debbugs.gnu.org; 17 Sep 2019 06:18:54 +0000 Received: from localhost ([127.0.0.1]:51524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA6pC-00052p-08 for submit@debbugs.gnu.org; Tue, 17 Sep 2019 02:18:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA6pA-00052Z-WB for 34177@debbugs.gnu.org; Tue, 17 Sep 2019 02:18:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iA6p5-0002hw-Kf; Tue, 17 Sep 2019 02:18:47 -0400 Received: from [176.228.60.248] (port=1213 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iA6p5-0004Fs-3y; Tue, 17 Sep 2019 02:18:47 -0400 Date: Tue, 17 Sep 2019 09:18:46 +0300 Message-Id: <83h85bwim1.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87pnjzom9b.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 17 Sep 2019 01:27:12 +0200) Subject: Re: bug#34177: smtpmail.el aborts on transient errors References: <70A0D375-0530-45D8-B4A4-B7BDF009749D@evenmere.org> <87h87vqd64.fsf@mouse.gnus.org> <87muf3q5d8.fsf@gnus.org> <55197E44-680A-4C59-8D3B-F37FBC132979@me.com> <87pnjzom9b.fsf@gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34177 Cc: bts@me.com, 34177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Tue, 17 Sep 2019 01:27:12 +0200 > Cc: 34177@debbugs.gnu.org > > I've now added smtpmail-retries to the trunk. Please mention it in NEWS. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 17 07:54:33 2019 Received: (at 34177) by debbugs.gnu.org; 17 Sep 2019 11:54:33 +0000 Received: from localhost ([127.0.0.1]:51711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAC41-0002sn-F7 for submit@debbugs.gnu.org; Tue, 17 Sep 2019 07:54:33 -0400 Received: from quimby.gnus.org ([80.91.231.51]:56898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAC40-0002sg-PJ for 34177@debbugs.gnu.org; Tue, 17 Sep 2019 07:54:33 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iAC3v-0008Ez-NO; Tue, 17 Sep 2019 13:54:31 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#34177: smtpmail.el aborts on transient errors References: <70A0D375-0530-45D8-B4A4-B7BDF009749D@evenmere.org> <87h87vqd64.fsf@mouse.gnus.org> <87muf3q5d8.fsf@gnus.org> <55197E44-680A-4C59-8D3B-F37FBC132979@me.com> <87pnjzom9b.fsf@gnus.org> <83h85bwim1.fsf@gnu.org> Date: Tue, 17 Sep 2019 13:54:27 +0200 In-Reply-To: <83h85bwim1.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 17 Sep 2019 09:18:46 +0300") Message-ID: <87blvjnnnw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Date: Tue, 17 Sep 2019 01:27:12 +0200 >> Cc: 34177@debbugs.gnu.org >> >> I've now added smtpmail-retries to the trunk. > > Please mention it in NEWS. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 34177 Cc: bts@me.com, 34177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Date: Tue, 17 Sep 2019 01:27:12 +0200 >> Cc: 34177@debbugs.gnu.org >> >> I've now added smtpmail-retries to the trunk. > > Please mention it in NEWS. I've done so already. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Thu Jun 19 14:14:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Oct 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator