From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63311: 30.0.50; [PATCH] smtpmail-send-it split Date: Tue, 07 Nov 2023 05:26:21 +0200 Message-ID: <837cmu2qhu.fsf@gnu.org> 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> <87h6lyeh4a.fsf@ledu-giraud.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30312"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63311@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 07 04:27:45 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 1r0Cki-0007gw-HY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Nov 2023 04:27:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0CkQ-0001st-SM; Mon, 06 Nov 2023 22:27:26 -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 1r0CkP-0001sh-00 for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 22:27: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 1r0CkO-00058Y-Oa for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 22:27:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0Ckz-0007k3-W7 for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 22:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Nov 2023 03:28:01 +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.169932764029706 (code B ref 63311); Tue, 07 Nov 2023 03:28:01 +0000 Original-Received: (at 63311) by debbugs.gnu.org; 7 Nov 2023 03:27:20 +0000 Original-Received: from localhost ([127.0.0.1]:41064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0CkK-0007j3-C0 for submit@debbugs.gnu.org; Mon, 06 Nov 2023 22:27:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0CkI-0007iq-8g for 63311@debbugs.gnu.org; Mon, 06 Nov 2023 22:27:19 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0Cja-0004nl-Vb; Mon, 06 Nov 2023 22:26:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QExJBHmRVhy25UbFJfSWP/stxy9a7qoaLaQmrgj1sDo=; b=c0D8vlf9C/aR QXxvLWTaCafh9GVUCkJApJo0OcMf0lf6MknJ0/0PqjhT6epfkBblQuYb177DVxhC/Dc4MpKbd1WDH 6xzDxqBCBvc5ATr6ftKq0l5zVUKQEah3qQ51QSruZ6H8PMQbgDSEWN+h8cH2G00tVmifBTpLs5YhH KKx2GoOtZ9rY0S38JibB60LYxUgRlytjAaJKKcoxKcnDw5F5QskJEHesrwsAhvJ6xl6kSDX3YUT2a Hi7+ZmeUS1KScWsNnkK1qVpufW/ZT60UjAhzW7tgWLE5LieAhATbVDA1sIM8ELLHvpBwqQh1gcOT2 12JiEw7IoSrqyJO+YE/2/A==; In-Reply-To: <87h6lyeh4a.fsf@ledu-giraud.fr> (message from Manuel Giraud on Mon, 06 Nov 2023 21:55:49 +0100) 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:273909 Archived-At: > From: Manuel Giraud > Cc: 63311@debbugs.gnu.org > Date: Mon, 06 Nov 2023 21:55:49 +0100 > > 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? It could, but why would there be other threads in this case? > >> 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. I thought we were talking about a new function for this purpose, which would replace message-send, no? Then that new function could have this code.