From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: smtpmail.el and 1msg
Date: 11 Mar 2004 14:11:16 -0500 [thread overview]
Message-ID: <jwvllm7dwyf.fsf-monnier+emacs@asado.iro.umontreal.ca> (raw)
In-Reply-To: <iluptbjgqrx.fsf@latte.josefsson.org>
>> While I think it's good to add support for 1msg, I also think it would be
>> worthwhile to fix the spinning problem. After all, if the other end closes
>> the connection, we should detect it. Do we? If `no' why not and if `yes'
>> why does it spin?
> Detecting closed connections, during the spin loop, was the intention
> of my patch. They weren't detected before. What do you think?
Yes, I've now seen your patch, looks fine.
> (while (not (search-forward "\r\n" nil t))
> (unless (memq (process-status process) '(open run))
> (throw 'done nil))
> (accept-process-output process)
> (goto-char smtpmail-read-point))
Isn't it possible to just check the return value of accept-process-output?
Something like
(while (not (search-forward "\r\n" nil t)
(unless (accept-process-output process)
(throw 'done nil))
(goto-char smtpmail-read-point))
-- Stefan
prev parent reply other threads:[~2004-03-11 19:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-04 21:29 smtpmail.el and 1msg jglauner
2004-03-08 16:51 ` Simon Josefsson
2004-03-09 22:36 ` Simon Josefsson
2004-03-10 18:15 ` jglauner
2004-03-10 22:51 ` Simon Josefsson
2004-03-10 23:05 ` Jonathan Glauner
2004-03-10 23:11 ` Simon Josefsson
2004-03-10 23:24 ` Jonathan Glauner
2004-03-10 23:38 ` Jonathan Glauner
2004-03-11 10:54 ` Simon Josefsson
2004-03-12 13:42 ` Stefan Monnier
2004-03-11 14:37 ` Stefan Monnier
2004-03-11 18:52 ` Simon Josefsson
2004-03-11 19:11 ` Stefan Monnier [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvllm7dwyf.fsf-monnier+emacs@asado.iro.umontreal.ca \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).