From: Denys Duchier <denys.duchier@univ-orleans.fr>
To: ding@gnus.org
Subject: Re: patch for "POP SSL connexion failed"
Date: Wed, 14 Nov 2007 22:15:18 +0100 [thread overview]
Message-ID: <873av88r6h.fsf@univ-orleans.fr> (raw)
In-Reply-To: <b4msl39av4p.fsf@jpl.org> (Katsumi Yamaoka's message of "Wed, 14 Nov 2007 21:07:02 +0900")
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> Do you have signed a paper for FSF? Otherwise, since it seems to be
> able to regard as a tiny change, do you wish to go that way?
I have not signed FSF papers and this is such a minuscule contribution I
am hoping it is not necessary to do the paperwork.
> Please write a ChangeLog entry by yourself, anyway.
here you go:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix pop3-open-server --]
[-- Type: text/x-patch, Size: 2025 bytes --]
? PATCH
Index: ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/ChangeLog,v
retrieving revision 7.1656
diff -u -r7.1656 ChangeLog
--- ChangeLog 7 Nov 2007 07:42:35 -0000 7.1656
+++ ChangeLog 14 Nov 2007 21:10:09 -0000
@@ -1,3 +1,8 @@
+2007-11-14 Denys Duchier <denys.duchier@univ-orleans.fr>
+
+ * pop3.el (pop3-open-server): accept and process data more robustly at
+ connexion start to avoid spurious "POP SSL connexion failed" errors.
+
2007-11-05 Reiner Steib <Reiner.Steib@gmx.de>
* message.el (message-citation-line-function)
Index: pop3.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/pop3.el,v
retrieving revision 7.26
diff -u -r7.26 pop3.el
--- pop3.el 4 Oct 2007 18:51:28 -0000 7.26
+++ pop3.el 14 Nov 2007 21:10:11 -0000
@@ -241,16 +241,20 @@
mailhost port)))
(when process
;; There's a load of info printed that needs deleting.
- (while (when (memq (process-status process) '(open run))
- (pop3-accept-process-output process)
- (goto-char (point-max))
- (forward-line -1)
- (if (looking-at "\\+OK")
- (progn
- (delete-region (point-min) (point))
- nil)
- (pop3-quit process)
- (error "POP SSL connexion failed"))))
+ (let ((again 't))
+ ;; repeat until
+ ;; - either we received the +OK line
+ ;; - or accept-process-output timed out without getting anything
+ (while (and again (setq again (memq (process-status process) '(open run))))
+ (setq again (pop3-accept-process-output process))
+ (goto-char (point-max))
+ (forward-line -1)
+ (cond ((looking-at "\\+OK")
+ (setq again nil)
+ (delete-region (point-min) (point)))
+ ((not again)
+ (pop3-quit-process)
+ (error "POP SSL connexion failed")))))
process)))
((eq pop3-stream-type 'starttls)
;; gnutls-cli, openssl don't accept service names
[-- Attachment #3: Type: text/plain, Size: 18 bytes --]
Cheers,
--Denys
next prev parent reply other threads:[~2007-11-14 21:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-13 20:40 Denys Duchier
2007-11-14 8:47 ` Leo
2007-11-14 12:07 ` Katsumi Yamaoka
2007-11-14 15:28 ` Leo
2007-11-14 21:15 ` Denys Duchier [this message]
2007-11-14 22:16 ` Katsumi Yamaoka
2007-11-16 20:07 ` rahed
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=873av88r6h.fsf@univ-orleans.fr \
--to=denys.duchier@univ-orleans.fr \
--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).