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 11:21:23 +0100 Message-ID: <87zfzrfaho.fsf@ledu-giraud.fr> References: <87jzxmsyyr.fsf@ledu-giraud.fr> <87wn1hzv9j.fsf@ledu-giraud.fr> <871qjoe7cw.fsf@ledu-giraud.fr> <837ctf575q.fsf@gnu.org> <87ilcypot3.fsf@ledu-giraud.fr> <83pm763y3r.fsf@gnu.org> <87h6si5aor.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> 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="40610"; 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 11:22:41 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 1qzwki-000ANl-Kw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Nov 2023 11:22:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzwkY-0001Kt-BM; Mon, 06 Nov 2023 05:22:30 -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 1qzwkW-0001Kl-SU for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 05:22:28 -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 1qzwkT-0004VR-Fr for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 05:22:28 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzwl3-000333-UO for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 05:23:01 -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 10:23: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.169926612611656 (code B ref 63311); Mon, 06 Nov 2023 10:23:01 +0000 Original-Received: (at 63311) by debbugs.gnu.org; 6 Nov 2023 10:22:06 +0000 Original-Received: from localhost ([127.0.0.1]:38663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzwkA-00031w-0c for submit@debbugs.gnu.org; Mon, 06 Nov 2023 05:22:06 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:27732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzwk7-00031n-Q2 for 63311@debbugs.gnu.org; Mon, 06 Nov 2023 05:22:05 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=kHjXHgyK /rDovgYEr7Oco1hz2zljyqmcippKAWZIhy0=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=/gJtz/lDr4D1NI+ehmZlMLjjEw+VAg B1bK5cY0ItwO/ONIgPX/Ti7TF2Ypgy0//Xc8TRPDN7cESLMOn3Ym0pDw== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=kHjXHgyK/rDovgYE r7Oco1hz2zljyqmcippKAWZIhy0=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=y/KyIrMAKCWJahXDPzDacTvhU3QtPD3fzyfs/7 0cOLyvUHIsivr04jNqnQAYNml8zgPY6VgHkHZe2EuPgKaYuFi/rFvSh14xRXHgCPtvfzdm scL52wIKRmuh60e9XcLLbYjahGdzgYg75qU0k+tdSgtRgoKEZLl70ZBHrEJ4dpDuBUfKmG ToZT897s9u9TdjBHuX3lYieZAd7vaZzn//pVt3nFLrKTSKAtx0BApKf/1vc7t5dG3gu98m bOWGzA+hwBGDruOPChb7mt6FXYGGcX+szdmjVLq2hiYFXORiPwKx1X7t3Wx5iSkWZYVNgB QOHgkI0lbcHsnCd2opDvWlYg== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 916d1065 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 6 Nov 2023 11:21:24 +0100 (CET) In-Reply-To: <834ji041jj.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 05 Nov 2023 18:17:52 +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:273864 Archived-At: Eli Zaretskii writes: >> From: Manuel Giraud >> Cc: 63311@debbugs.gnu.org >> Date: Sun, 05 Nov 2023 17:12:03 +0100 >> >> Eli Zaretskii writes: >> >> > Nothing, AFAIU. Instead of making smtpmail-send-it optionally working >> > asynchronously, it should be perfectly valid to have a separate >> > function called, say, message-send-asynchronously, which would work >> > with background threads and implement the same protocol as the other >> > MUA's send-it functions do. >> >> Ok. But there is still the case where any 'error' call from a thread >> will end up in limbo, no? > > The caller will need to fetch it and display it. Yes but how would I do that. My idea was to left much code unmodified (with all 'error' calls in case something goes wrong). But how the 'main-thread' could fetch these errors. -- Manuel Giraud