Gnus development mailing list
 help / color / mirror / Atom feed
From: Rory Molinari <h571pufwjtlf001@sneakemail.com>
Subject: imap.el - problem (?) in imap.el
Date: Fri, 03 May 2002 13:36:26 -0700	[thread overview]
Message-ID: <ulmb1x92t.fsf@sneakemail.com> (raw)

Hi,

I use the fastmail.fm email service, and access my mail through gnus
using fastmail's IMAP server.  I had some trouble getting it to work at
first, and finally tracked down the problem to the imap-parse-greeting
function in imap.el.

Where imap-parse-greeting was expecting to see "* OK", the fastmail.fm
server produces "SERVER * OK".  The parsing of greetings was failing,
and gnus interpreted this as a failure to connect to the server.

Here is a simple unified diff that fixed the problem for me.  It is
against the Oort 0.05 release.

Let me know if I did the diff wrong.

Cheers,
Rory

--- imap.el.dist	Fri May  3 13:32:27 2002
+++ imap.el	Fri May  3 13:32:27 2002
@@ -1928,11 +1928,11 @@
 
 (defun imap-parse-greeting ()
   "Parse a IMAP greeting."
-  (cond ((looking-at "\\* OK ")
+  (cond ((looking-at "\\(Server \\)?\\* OK ")
 	 (setq imap-state 'nonauth))
-	((looking-at "\\* PREAUTH ")
+	((looking-at "\\(Server \\)?\\* PREAUTH ")
 	 (setq imap-state 'auth))
-	((looking-at "\\* BYE ")
+	((looking-at "\\(Server \\)?\\* BYE ")
 	 (setq imap-state 'closed))))
 
 ;;   response        = *(continue-req / response-data) response-done




             reply	other threads:[~2002-05-03 20:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-03 20:36 Rory Molinari [this message]
2002-05-03 21:37 ` Simon Josefsson
     [not found] <1870670816.1020461897115.JavaMail.root@monkey>
2002-05-03 23:26 ` Rory Molinari

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=ulmb1x92t.fsf@sneakemail.com \
    --to=h571pufwjtlf001@sneakemail.com \
    /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).