From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65704 Path: news.gmane.org!not-for-mail From: rahed Newsgroups: gmane.emacs.gnus.general Subject: Re: patch for "POP SSL connexion failed" Date: Fri, 16 Nov 2007 20:07:42 +0000 Message-ID: References: <87sl39vpzn.fsf@univ-orleans.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195244835 30374 80.91.229.12 (16 Nov 2007 20:27:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2007 20:27:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M14200@lists.math.uh.edu Fri Nov 16 21:27:20 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1It7mZ-0002vb-JF for ding-account@gmane.org; Fri, 16 Nov 2007 21:27:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1It7lc-0001pa-RM; Fri, 16 Nov 2007 14:26:20 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1It7Tl-0001k0-CL for ding@lists.math.uh.edu; Fri, 16 Nov 2007 14:07:53 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1It7Te-0002rA-6O for ding@lists.math.uh.edu; Fri, 16 Nov 2007 14:07:53 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1It7TZ-0004zR-00 for ; Fri, 16 Nov 2007 21:07:41 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1It7TX-0001ye-JK for ding@gnus.org; Fri, 16 Nov 2007 20:07:39 +0000 Original-Received: from 88.103.41.197 ([88.103.41.197]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Nov 2007 20:07:39 +0000 Original-Received: from raherh by 88.103.41.197 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Nov 2007 20:07:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 64 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 88.103.41.197 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:QI3voM+F+yEk2lrmf+8hyqqoX7c= X-Spam-Score: -1.1 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65704 Archived-At: Denys Duchier writes: > up'ed. Here is a fix that seems to work well for me: > > cvs server: Diffing . > 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 13 Nov 2007 20:35:35 -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 Shouldn't the line > + (pop3-quit-process) read > + (pop3-quit process) ? When I start gnus with this patch it freezes with a message in the minibuffer: Opening TLS connection to 'pop.gmail.com'...done and a trace of POP session to pop.gmail.com buffer has a line +OK Gpop ready for requests from ... Apparently it waits for user/passwd. Could someone elaborate? -- Radek