Gnus development mailing list
 help / color / mirror / Atom feed
From: Mats Lidell <Mats.Lidell@contactor.se>
Cc: Jake Colman <colman@ppllc.com>, ding@gnus.org
Subject: Re: Imap Problem
Date: 02 Jun 2001 22:03:25 +0200	[thread overview]
Message-ID: <m3zobqzm2a.fsf@c213.89.177.36.cm-upc.chello.se> (raw)
In-Reply-To: <iluu21zol4o.fsf@barbar.josefsson.org> (Simon Josefsson's message of "02 Jun 2001 01:24:42 +0200")

>>>>> 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



  reply	other threads:[~2001-06-02 20:03 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-31 23:55 Jake Colman
2001-06-01  6:41 ` Kai Großjohann
2001-06-01 15:52   ` Jake Colman
2001-06-01  7:00 ` Mats Lidell
2001-06-01 13:22   ` Jake Colman
2001-06-01 15:01     ` Kai Großjohann
2001-06-01 16:00       ` Jake Colman
2001-06-01 15:46     ` Mats Lidell
2001-06-01 16:09       ` Jake Colman
2001-06-01 18:04       ` Jake Colman
2001-06-01 23:24       ` Simon Josefsson
2001-06-02 20:03         ` Mats Lidell [this message]
2001-06-02 20:13           ` Mats Lidell
2001-06-02 21:05           ` Simon Josefsson
2001-06-04 15:21             ` Jake Colman
2001-06-05 18:10               ` Simon Josefsson
2001-06-04 16:06             ` Jake Colman
2001-06-04 16:18             ` Jake Colman
2001-06-05  8:34               ` Mats Lidell
2001-06-05 14:58                 ` Nevin Kapur
2001-06-05 15:20                   ` Jake Colman
2001-06-05 18:20                     ` Simon Josefsson
2001-06-05 19:06                       ` Jake Colman
2001-06-05 19:39                         ` Simon Josefsson
2001-06-05 23:20                           ` Jake Colman
2001-06-05 23:56                           ` Mats Lidell
2001-06-05 18:19               ` Simon Josefsson
2001-06-05 19:07                 ` Jake Colman
2004-10-07 11:36 imap problem walter.franzini-M4bTUdDEyImonA0d6jMUrA

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=m3zobqzm2a.fsf@c213.89.177.36.cm-upc.chello.se \
    --to=mats.lidell@contactor.se \
    --cc=colman@ppllc.com \
    --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).