From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23020: 25.1.50; smtpmail reports that it's sent the message before it's sent Date: Tue, 26 Apr 2016 00:54:20 +0200 Message-ID: References: <83r3fbbrpv.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461624927 24273 80.91.229.3 (25 Apr 2016 22:55:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2016 22:55:27 +0000 (UTC) Cc: 23020@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 26 00:55:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aupPP-0007rF-Gs for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Apr 2016 00:55:15 +0200 Original-Received: from localhost ([::1]:35312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aupPL-0006je-Fe for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Apr 2016 18:55:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aupPH-0006gW-4O for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2016 18:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aupPC-0003eQ-5d for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2016 18:55:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aupPC-0003eF-31 for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2016 18:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aupPB-0006F5-UO for bug-gnu-emacs@gnu.org; Mon, 25 Apr 2016 18:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Apr 2016 22:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23020 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23020-submit@debbugs.gnu.org id=B23020.146162486523944 (code B ref 23020); Mon, 25 Apr 2016 22:55:01 +0000 Original-Received: (at 23020) by debbugs.gnu.org; 25 Apr 2016 22:54:25 +0000 Original-Received: from localhost ([127.0.0.1]:47052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aupOa-0006E8-Tp for submit@debbugs.gnu.org; Mon, 25 Apr 2016 18:54:25 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:49314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aupOZ-0006E0-1L for 23020@debbugs.gnu.org; Mon, 25 Apr 2016 18:54:23 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1aupOW-0000wt-BK; Tue, 26 Apr 2016 00:54:22 +0200 In-Reply-To: <83r3fbbrpv.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 15 Mar 2016 19:01:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:116835 Archived-At: Eli Zaretskii writes: >> Sending email >> Sending email done >> smtpmail-send-it: Sending failed: 550 This message scored too many >> spam points in response to . >> >> So it shouldn't say "done" until it's really done. > > Isn't it message.el that says "done" in this case? I think it must be this code... I can't find the string "Sending email" in message.el. (defun smtpmail-send-data (process buffer) (let ((data-continue t) sending-data (pr (with-current-buffer buffer (make-progress-reporter "Sending email " (point-min) (point-max))))) (with-current-buffer buffer (goto-char (point-min))) (while data-continue (with-current-buffer buffer (progress-reporter-update pr (point)) (setq sending-data (buffer-substring (point-at-bol) (point-at-eol))) (end-of-line 2) (setq data-continue (not (eobp)))) (smtpmail-send-data-1 process sending-data)) (progress-reporter-done pr))) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no