From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34563 Path: main.gmane.org!not-for-mail From: Mats Lidell Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap hangs on connect plus Garbage: Date: 06 Feb 2001 01:54:53 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035170469 31107 80.91.224.250 (21 Oct 2002 03:21:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:21:09 +0000 (UTC) Cc: Mats Lidell , ding@gnus.org Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id 9D441D049D for ; Mon, 5 Feb 2001 19:53:54 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id SAC07495; Mon, 5 Feb 2001 18:52:08 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 05 Feb 2001 18:51:22 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id SAA28188 for ; Mon, 5 Feb 2001 18:51:11 -0600 (CST) Original-Received: from pm1.contactor.se (gw.contactor.se [193.15.23.130]) by mailhost.sclp.com (Postfix) with ESMTP id EEA34D049D for ; Mon, 5 Feb 2001 19:51:40 -0500 (EST) Original-Received: from c193.150.217.24.cm-upc.chello.se (pm1 [193.15.23.1]) by pm1.contactor.se (8.9.3/8.9.1) with ESMTP id BAA20692; Tue, 6 Feb 2001 01:51:39 +0100 (MET) Original-To: Simon Josefsson In-Reply-To: (Simon Josefsson's message of "06 Feb 2001 00:22:00 +0100") User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.2 (Terspichore) Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 55 Xref: main.gmane.org gmane.emacs.gnus.general:34563 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34563 >>>>> Simon wrote: Simon> Does the following have any effect? Simon> --- imap.el.~6.3.~ Wed Dec 20 18:14:16 2000 Simon> +++ imap.el Tue Feb 6 00:20:04 2001 Simon> @@ -857,13 +857,16 @@ Simon> imap-current-message nil Simon> imap-state 'initial Simon> imap-process (condition-case () Simon> + (sit-for 1) Simon> (funcall (nth 2 (assq imap-stream Simon> imap-stream-alist)) Simon> "imap" buffer imap-server imap-port) Simon> + (sit-for 1) Simon> ((error quit) nil))) Simon> (when imap-process Simon> (set-process-filter imap-process 'imap-arrival-filter) Simon> (set-process-sentinel imap-process 'imap-sentinel) Simon> + (sit-for 1) Simon> (while (and (eq imap-state 'initial) Simon> (memq (process-status imap-process) '(open run))) Simon> (message "Waiting for response from %s..." imap-server) Doesn't work. Is condition-case supposed to work that way? Anyway. I looked down the funcall way and found that it hangs in imap-network-open: (My messages) (Good old debug by print you know) (while (and (memq (process-status process) '(open run)) (goto-char (point-min)) (message "imap-network-open 3") (not (imap-parse-greeting))) (accept-process-output process 1) (message "imap-network-open 4") (sit-for 1)) Endless sequence of "imap-network-open 3" and "imap-network-open 4" seen in minibuffer. When I break the loop with C-g the "*nnimap host" buffer contains a valid greeting line. imap-parse-greeting returns t anyway. Does this suggest that the "*nnimap host" buffer isn't updated so that looking-at (in imap-parse-greeting) can see it? Removing the delay in accept-process-output stops Emacs completely which suggests to me that all possible output was received but imap-parse-greeting didn't see it. Suggestions are welcome. Yours -- %% Mats