From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63311: 30.0.50; [PATCH] smtpmail-send-it split Date: Mon, 06 Nov 2023 21:55:49 +0100 Message-ID: <87h6lyeh4a.fsf@ledu-giraud.fr> References: <87jzxmsyyr.fsf@ledu-giraud.fr> <83a5ya3u16.fsf@gnu.org> <871qjm56ej.fsf@ledu-giraud.fr> <87r0l9ejmm.fsf@ledu-giraud.fr> <834ji5aatw.fsf@gnu.org> <87bkcde4bz.fsf@ledu-giraud.fr> <83r0l98e6w.fsf@gnu.org> <87lebhckp2.fsf@ledu-giraud.fr> <83msvw904n.fsf@gnu.org> <87wmv0zb6v.fsf@ledu-giraud.fr> <8334xo8khh.fsf@gnu.org> <87ttq0nuq5.fsf@ledu-giraud.fr> <835y2g42zj.fsf@gnu.org> <87msvsfacs.fsf@ledu-giraud.fr> <834ji041jj.fsf@gnu.org> <87zfzrfaho.fsf@ledu-giraud.fr> <83msvr2gy3.fsf@gnu.org> <87jzqux4cu.fsf@ledu-giraud.fr> <83fs1i3kxy.fsf@gnu.org> <87pm0mepco.fsf@ledu-giraud.fr> <838r7a3cy6.fsf@gnu.org> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36959"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63311@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 06 21:56:43 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r06eH-0009Jr-V9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Nov 2023 21:56:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r06e3-0006eR-MX; Mon, 06 Nov 2023 15:56:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r06e1-0006Yt-87 for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 15:56:25 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r06e1-0002jW-0Z for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 15:56:25 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r06ec-0002qv-9h for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 15:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Nov 2023 20:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63311-submit@debbugs.gnu.org id=B63311.169930419310926 (code B ref 63311); Mon, 06 Nov 2023 20:57:02 +0000 Original-Received: (at 63311) by debbugs.gnu.org; 6 Nov 2023 20:56:33 +0000 Original-Received: from localhost ([127.0.0.1]:40780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r06e9-0002qA-AL for submit@debbugs.gnu.org; Mon, 06 Nov 2023 15:56:33 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:43267) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r06e6-0002q0-MI for 63311@debbugs.gnu.org; Mon, 06 Nov 2023 15:56:32 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=4QlkQ/qk bukIqLLvXAItPOlU75kpJ53TCWwnJHge/is=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=iLyxpGQ2O1EQcppTF0iTgGgoA7LA2C Lk2SiLS9igutZSWAa5vymUxGqoKnFCqc5VqKHN5D8vHoKaR7iG5gSmDQ== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=4QlkQ/qkbukIqLLv XAItPOlU75kpJ53TCWwnJHge/is=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=Vp890xgFFnwMxi0VlUXMuYqail4kRKB1SJgpxo 9MYI7W+BMPAkJNH/AdhD9gwTeZdQP1AxGLSTPkK+Te/0T06AroDEcF055VGbTkm612hg73 LKvKhnNkZOJEUmMawkVoHbH3SzDXW3IIo81A+QwzVVWiZu2XSY//1iiQBwhgDJFSWV/JX3 mnuYSxg1OLcUmotFmnjO4TcUZsky26TGHpuYa8y7XToghJmkqEVI+OXZR28YTbPKA1eLQ+ hOqcyGF2dGyT//kkSGvBs+L9qG0ZAKnkuSgzF4pvjFokWlwT6tBmntk7H2BuA+Ve9QraGe SgjGU9BD+SNybESO8v8AHySA== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id d2e439bb (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 6 Nov 2023 21:55:51 +0100 (CET) In-Reply-To: <838r7a3cy6.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 06 Nov 2023 21:21:21 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273899 Archived-At: Eli Zaretskii writes: >> If it is dead and (thread-last-error) returns nil maybe we can conclude >> that everything went well. But if (thread-last-error) returns a >> message, it could be message from any other Emacs thread: what to do in >> such case? > > Display a message about the error. I mean, the last error message could come from another thread not related in anyway to mail sending. No? >> Or worse: the thread is dead, (thread-last-error) returns >> nil... but it was cleared from another part of Emacs. > > This means it exited successfully. We could also maintain a data > structure where successfully-exiting threads will leave their success > status together with some id of the message they sent -- unlike a > thread that dies abruptly due to an error, a successful thread can > store the information in the data structure before exiting. Yes why not but then I'd have to modify internals of 'message-send': something I thought I could escape. -- Manuel Giraud