Gnus development mailing list
 help / color / mirror / Atom feed
* imap.el - problem (?) in imap.el
@ 2002-05-03 20:36 Rory Molinari
  2002-05-03 21:37 ` Simon Josefsson
  0 siblings, 1 reply; 3+ messages in thread
From: Rory Molinari @ 2002-05-03 20:36 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <1870670816.1020461897115.JavaMail.root@monkey>]

end of thread, other threads:[~2002-05-03 23:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-03 20:36 imap.el - problem (?) in imap.el Rory Molinari
2002-05-03 21:37 ` Simon Josefsson
     [not found] <1870670816.1020461897115.JavaMail.root@monkey>
2002-05-03 23:26 ` Rory Molinari

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