From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#53467: 29.0.50; Wishlist: smtpmail should be asynchronous Date: Sun, 23 Jan 2022 13:23:48 +0100 Message-ID: <87lez6abe3.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16437"; mail-complaints-to="usenet@ciao.gmane.io" To: 53467@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 23 13:24:17 2022 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 1nBbur-00042R-IN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 13:24:17 +0100 Original-Received: from localhost ([::1]:34414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBbuq-0002hE-9M for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 07:24:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBbud-0002fT-0M for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 07:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBbuc-0008VE-M6 for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 07:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBbuc-0007PH-Ib for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 07:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jan 2022 12:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53467 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164294063928456 (code B ref -1); Sun, 23 Jan 2022 12:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jan 2022 12:23:59 +0000 Original-Received: from localhost ([127.0.0.1]:38714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBbuY-0007Ou-Oj for submit@debbugs.gnu.org; Sun, 23 Jan 2022 07:23:58 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:36284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBbuW-0007Om-Ju for submit@debbugs.gnu.org; Sun, 23 Jan 2022 07:23:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBbuW-0002U8-54 for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 07:23:56 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=55312 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBbuU-0008Om-EJ for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 07:23:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=17HqpsFWQVNgNVeV6K4Y7j6qIHPopEOh7Gf7e2UXXmQ=; b=pZ62MV+Zml6/fQ++ZucwfyQlvx /m+n5vR4lEUaQPRUfDlqSAfAD8csEhHTewARVadwTfMmKzI0IUiuUc7q7qRjcTFnVzSHKsKDr9fFL j+ONG1/nTtW6BAoEBWxsip9n2LOiYF9FkN3JJSyftZIQQoo+BZrFOaHjqCRX2pmR11Ko=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBbuP-0004qV-D1 for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 13:23:52 +0100 X-Now-Playing: Sade's _Promise_: "Is It a Crime" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:224899 Archived-At: It should be pretty easy to implement using process filters, but perhaps it could also be done by using threads? The main problem is doing error handling, I think. When replying to a message in Gnus, for instance, after hitting `C-c C-c' in the Message buffer, we then mark the message as replied-to in the Gnus summary buffer, put it into the archive folder, etc. But if then smtpmail is unable to send the message, because the To header is invalid, for instance, what should then happen? Ideally you'd then land back in the Message buffer and continue editing, and then resend the message. But the Message buffer may not exist at that point. And even more ideally, the message shouldn't be marked as replied-to until smtpmail has finished delivering the message, but that's even more tricky -- Gnus may not even be running at that point. So making smtpmail asynchronous is easy, but making a useful framework around that is harder. In GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0) of 2022-01-22 built on giant Repository revision: 41846901e22e824f02796012164c51df0297c6ec Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12014000 System Description: Debian GNU/Linux bookworm/sid -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no