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 Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Non file buffers and default-directory Date: Tue, 25 Apr 2023 19:00:25 +0200 Message-ID: <87cz3r28ye.fsf@ledu-giraud.fr> References: <87edohf3ip.fsf@ledu-giraud.fr> <87zg745p85.fsf@gmx.de> <87y1moe1aa.fsf@ledu-giraud.fr> <87v8hr6gvl.fsf@gmx.de> <874jpa611r.fsf@ledu-giraud.fr> <87v8hprb5w.fsf@mbork.pl> <87zg714qb8.fsf@gmx.de> <87pm7xplz3.fsf@ledu-giraud.fr> <87r0sc4cmv.fsf@gmx.de> <87ttx810mz.fsf@ledu-giraud.fr> <831qkb27st.fsf@gnu.org> <87pm7v256a.fsf@univ-nantes.fr> <87cz3vukop.fsf@gmx.de> <83leijyrb2.fsf@gnu.org> <87pm7u95yf.fsf@gnu.org> <83fs8qzrab.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="39979"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 25 19:01:17 2023 Return-path: Envelope-to: geh-help-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 1prM2X-000AGD-Fa for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 25 Apr 2023 19:01:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prM20-0003Xc-BD; Tue, 25 Apr 2023 13:00:44 -0400 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 1prM1t-0003XB-N9 for help-gnu-emacs@gnu.org; Tue, 25 Apr 2023 13:00:38 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prM1p-0005BD-Vd; Tue, 25 Apr 2023 13:00:37 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=vKcDM3+h UnVfQg0HRu5k9PLtXyycRvD0h0fFgzF0yTI=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=Ss5J0+oeO0rvPoBPKv/O7T9cHEd2nB 2h7FnST5b0AkErPeVpnDKwMf2NEHkak+haKhpVi4jvbO8IdRvDvUauBA== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=vKcDM3+hUnVfQg0H Ru5k9PLtXyycRvD0h0fFgzF0yTI=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=UB8EaG9GVXmZiK44ykOZW/sEGj3kJCaJIyUzFc 7STh7ErBv92EQvOMDVgCU/kHUzeGJlN9MXWev62PQ2RUjireS+wh3GAuA+xawF7xmDRzlo cTG9jeTxXsZ2O5Fso88nAVy1QMllp+pouPP5MJhy6RiPfxTioutGUo9x/mU1Iol1zhq/8k wKfWBKN/32jUQJyl1XphSjnxkTxMCfe51fFmi6u47FtBHgbFhiB1ZTOQPQ8exFjH1SlK4d airMbGyebOsBBfLqdHFl8D0C4Et2wcci7UH1D3IZD5VHut98gsAYsw8wQhlYBie2skwZ7z yhFTKLssLHY+62gp/PemQURA== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 610a0c2f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 25 Apr 2023 19:00:27 +0200 (CEST) In-Reply-To: <83fs8qzrab.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 23 Apr 2023 16:01:16 +0300") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143380 Archived-At: Eli Zaretskii writes: >> From: Manuel Giraud >> Cc: help-gnu-emacs@gnu.org >> Date: Sun, 23 Apr 2023 13:46:32 +0200 >> >> FTR, I've tried the following: >> --8<---------------cut here---------------start------------->8--- >> (defun my-send-mail-function () >> (make-thread #'smtpmail-send-it)) >> >> (setq send-mail-function 'my-send-mail-function) >> --8<---------------cut here---------------end--------------->8--- >> >> This seems to work but I guess that you were thinking of something else. > > "Work" in what sense? Were you able to do something in Emacs while > the mail was being sent? What happens if the send fails for some > reason? And how fast is it sent in your case, so that the "work" part > could be evaluated in real-life conditions, when sending takes some > time? For example, what happens if you try to send a message with a > very large attachment? Hi, FWIW, I've made some tests with this simplistic setup (just a make-thread on smtpmail-send-it) and a toy SMTP server of mine. This server makes some random pause (50ms max) for each line it received. The message had an image attachment to it resulting in many lines of base64 encoded text. So this mail takes about 12 minutes to send. The good: - while doing this, Emacs was fully responsive: I have read some mails in Gnus, edit an org file, export it to PDF, delete files from dired... The bad (and ugly): - the mail is considered *sent* right away even if the server hangs up in the middle of the transaction and the message is not sent :-/ -- Manuel Giraud