From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: pop3-read-response
Date: Tue, 31 May 2011 20:49:47 +0200 [thread overview]
Message-ID: <m3tycaemd0.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <87mxi35ogp.fsf@hati.baby-gnu.org>
Daniel Dehennin <daniel.dehennin@baby-gnu.org> writes:
> Sorry, I’m using bc1350c0871a8da4d356861b06020e37692056ef and the
> problem is still there.
Darn.
> If you need more information, I can make some tests.
My suspicion was that there was data in the buffer that the pop3 parser
didn't expect to be there, so it regarded something as a response before
getting the complete
+OK USER ... \r\n
line. But that may be wrong.
If you apply the following patch, pop3 should message what's in the
buffer, and that might give us a clue what's failing precisely,
pop3-read-point is supposed to be before the "+OK", so waiting for the
\r\n should have given the complete line. I'm thinking pop3-read-point
is somewhere earlier in the buffer for some reason or other.
diff --git a/lisp/pop3.el b/lisp/pop3.el
index 90e11b3..917a401 100644
--- a/lisp/pop3.el
+++ b/lisp/pop3.el
@@ -345,6 +345,7 @@ Return the response string if optional second argument is non-nil."
(not (search-forward "\r\n" nil t)))
(pop3-accept-process-output process)
(goto-char pop3-read-point))
+ (message "%d %s" pop3-read-point (buffer-string))
(setq match-end (point))
(goto-char pop3-read-point)
(if (looking-at "-ERR")
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
next prev parent reply other threads:[~2011-05-31 18:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-04 10:32 pop3-read-response Daniel Dehennin
2011-05-24 8:22 ` pop3-read-response Adrian Lanz
2011-05-24 16:40 ` pop3-read-response Daniel Dehennin
2011-05-30 20:48 ` pop3-read-response Lars Magne Ingebrigtsen
2011-05-31 7:16 ` pop3-read-response Daniel Dehennin
2011-05-31 18:49 ` Lars Magne Ingebrigtsen [this message]
2011-06-01 7:05 ` pop3-read-response Daniel Dehennin
2011-06-03 22:08 ` pop3-read-response Lars Magne Ingebrigtsen
2011-07-03 12:46 ` pop3-read-response Adrian Lanz
2011-07-05 20:55 ` pop3-read-response Lars Magne Ingebrigtsen
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=m3tycaemd0.fsf@quimbies.gnus.org \
--to=larsi@gnus.org \
--cc=ding@gnus.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.
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 NNTP newsgroup(s).