From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36556 Path: main.gmane.org!not-for-mail From: Mats Lidell Newsgroups: gmane.emacs.gnus.general Subject: Re: Imap Problem Date: 02 Jun 2001 22:03:25 +0200 Sender: matsl@c213.89.177.36.cm-upc.chello.se Message-ID: References: <76y9rdaxai.fsf@newjersey.ppllc.com> <76zobsxrkj.fsf@newjersey.ppllc.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035172121 9205 80.91.224.250 (21 Oct 2002 03:48:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:48:41 +0000 (UTC) Cc: Jake Colman , ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 16304 invoked from network); 2 Jun 2001 20:03:11 -0000 Original-Received: from gw.contactor.se (HELO pm1.contactor.se) (193.15.23.130) by gnus.org with SMTP; 2 Jun 2001 20:03:11 -0000 Original-Received: from c213.89.177.36.cm-upc.chello.se (pm1 [193.15.23.1]) by pm1.contactor.se (8.9.3/8.9.1) with ESMTP id WAA11378; Sat, 2 Jun 2001 22:01:43 +0200 (MET DST) Original-To: Mats Lidell In-Reply-To: (Simon Josefsson's message of "02 Jun 2001 01:24:42 +0200") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (anise) Original-Lines: 73 Xref: main.gmane.org gmane.emacs.gnus.general:36556 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36556 >>>>> Simon wrote: Simon> It might be `accept-process-output' causing this. Does the Simon> attached patch do anything useful? Well... something. This time it looked like this. ---------------------------------------------------------------------- imap: Connecting to localhost... Looking for greeting in *nnimap* contactor Looking for greeting in *Group* Looking for greeting in *Group* Looking for greeting in *Group* Looking for greeting in *Group* Looking for greeting in *Group* Looking for greeting in *Group* Looking for greeting in *nnimap* contactor Waiting for response from localhost...done ---------------------------------------------------------------------- It found the right buffer first after I selected the frame by clicking in it with the mouse. I tried it a couple of times. It turned out the same every time. (Quite interesting don't you think.) But the patch gave a hint. If the current buffer is changed without us knowing it why not set the buffer back again. Simon tried it but why not set it just before calling imap-parse-greeting so we know we are looking at the right thing. This lead to the following patch. *** imap.el Sat Jun 2 20:59:18 2001 --- imap.el.~32~ Sat Jun 2 19:24:15 2001 *************** *** 616,622 **** (process (open-network-stream name buffer server port))) (when process (while (and (memq (process-status process) '(open run)) - (set-buffer buffer) ;; XXX "blue moon" nntp.el bug (goto-char (point-min)) (not (imap-parse-greeting))) (accept-process-output process 1) --- 616,621 ---- *************** *** 1842,1848 **** (defun imap-parse-greeting () "Parse a IMAP greeting." - (message (concat "Looking for greeting in " (buffer-name))) (cond ((looking-at "\\* OK ") (setq imap-state 'nonauth)) ((looking-at "\\* PREAUTH ") --- 1841,1846 ---- ... and the right respons to! ---------------------------------------------------------------------- imap: Connecting to localhost... Looking for greeting in *nnimap* contactor Looking for greeting in *nnimap* contactor Waiting for response from localhost...done ---------------------------------------------------------------------- I tried it a couple of times and worked every time. Both starting gnus in new frame and starting gnus in existing frame with more frames around worked. Please note that I have only tried it _together_ with Simons patch and that it only affects imap-network-open. If you feel adventurous you might want to look into the affairs of process-status. ;-) Yours -- %% Mats