all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Manuel Giraud via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Non file buffers and default-directory
Date: Tue, 25 Apr 2023 19:00:25 +0200	[thread overview]
Message-ID: <87cz3r28ye.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <83fs8qzrab.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 23 Apr 2023 16:01:16 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Manuel Giraud <manuel@ledu-giraud.fr>
>> 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



  parent reply	other threads:[~2023-04-25 17:00 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-18 18:29 Non file buffers and default-directory Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-18 19:12 ` Emanuel Berg
2023-04-19  7:02 ` Michael Albinus
2023-04-19  8:14   ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-19 10:48     ` Emanuel Berg
2023-04-19 12:32       ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-19 12:48         ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-19 15:17     ` Michael Albinus
2023-04-20 15:11       ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-20 17:12         ` Emanuel Berg
2023-04-21  6:31           ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-23 14:33             ` Emanuel Berg
2023-04-24  7:57               ` Michael Albinus
2023-04-25 12:06                 ` Emanuel Berg
2023-04-21  6:39         ` Marcin Borkowski
2023-04-21  7:16           ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-21  8:01           ` Michael Albinus
2023-04-21  9:03             ` Marcin Borkowski
2023-04-21 10:29             ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-22  7:08               ` Michael Albinus
2023-04-22 13:56                 ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-22 16:36                   ` Eli Zaretskii
2023-04-22 17:33                     ` Manuel Giraud
2023-04-23  7:22                       ` Michael Albinus
2023-04-23  7:46                         ` Eli Zaretskii
2023-04-23 11:24                           ` Manuel Giraud
2023-04-23 12:57                             ` Eli Zaretskii
2023-04-23 11:46                           ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-23 13:01                             ` Eli Zaretskii
2023-04-23 14:48                               ` Thread for smtpmail-send-it (was: Non file buffers and default-directory) Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-23 15:56                                 ` Eli Zaretskii
2023-04-25 17:00                               ` Manuel Giraud via Users list for the GNU Emacs text editor [this message]
2023-04-25 17:27                                 ` Non file buffers and default-directory Eli Zaretskii
2023-04-25 17:54                                   ` Emanuel Berg
2023-04-27  6:05                                     ` Eli Zaretskii
2023-04-27 19:46                                       ` Emanuel Berg
2023-04-28 11:34                                         ` Eli Zaretskii
2023-05-01  2:10                                           ` Emanuel Berg
2023-05-01 11:20                                             ` tomas
2023-05-01 22:15                                               ` Emanuel Berg
2023-05-04 17:49                                                 ` tomas
2023-05-04 23:26                                                   ` Emanuel Berg
2023-05-01 11:55                                             ` Eli Zaretskii
2023-04-27 10:58                                   ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-27 11:14                                     ` Eli Zaretskii
2023-04-27 12:04                                       ` Tim Landscheidt
2023-04-27 12:30                                         ` Eli Zaretskii
2023-04-28  1:08                                           ` Tim Landscheidt
2023-04-27 18:53                                         ` Tomas Hlavaty
2023-04-28  2:03                                           ` Tim Landscheidt
2023-04-27 15:29                                       ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-27 18:52                                     ` Tomas Hlavaty
2023-04-22 17:34                     ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-22 17:31                   ` Michael Albinus
2023-04-21 12:54           ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-26 17:17         ` Michael Albinus
2023-04-27  9:25           ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-19 10:39   ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cz3r28ye.fsf@ledu-giraud.fr \
    --to=help-gnu-emacs@gnu.org \
    --cc=eliz@gnu.org \
    --cc=manuel@ledu-giraud.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.