* Re: imap.el - problem (?) in imap.el
[not found] <1870670816.1020461897115.JavaMail.root@monkey>
@ 2002-05-03 23:26 ` Rory Molinari
0 siblings, 0 replies; 3+ messages in thread
From: Rory Molinari @ 2002-05-03 23:26 UTC (permalink / raw)
Simon Josefsson jas@extundo.com writes:
> Rory Molinari <h571pufwjtlf001@sneakemail.com> writes:
>
>> 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.
>
> Are you using some funky proxy or something? I don't see SERVER when
> I connect to it:
>
> [jas@localhost jas]$ telnet fastmail.fm imap
> Trying 209.61.183.86...
> Connected to fastmail.fm (209.61.183.86).
> Escape character is '^]'.
> * OK IMAP4 Ready www.fastmail.fm
>
> In any case I'd say a server the returned SERVER * OK foo as a
> greeting was quite broken.
Evidently I am completely out of date. I had these problems about a
month ago and "fixed" them at that time. I only just today got around
to posting my patch to the list.
I just tried connecting to fastmail.fm without my modifications to
imap.el, and it worked perfectly. Either fastmail.fm's IMAP server was
broken a month ago or (much more likely) I got myself totally confused.
In any case, please ignore my previous post, and the patch it contains.
Cheers,
Rory
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: imap.el - problem (?) in imap.el
2002-05-03 20:36 Rory Molinari
@ 2002-05-03 21:37 ` Simon Josefsson
0 siblings, 0 replies; 3+ messages in thread
From: Simon Josefsson @ 2002-05-03 21:37 UTC (permalink / raw)
Cc: ding
Rory Molinari <h571pufwjtlf001@sneakemail.com> writes:
> 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.
Are you using some funky proxy or something? I don't see SERVER when
I connect to it:
[jas@localhost jas]$ telnet fastmail.fm imap
Trying 209.61.183.86...
Connected to fastmail.fm (209.61.183.86).
Escape character is '^]'.
* OK IMAP4 Ready www.fastmail.fm
In any case I'd say a server the returned SERVER * OK foo as a
greeting was quite broken.
^ permalink raw reply [flat|nested] 3+ messages in thread
* 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
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 --
[not found] <1870670816.1020461897115.JavaMail.root@monkey>
2002-05-03 23:26 ` imap.el - problem (?) in imap.el Rory Molinari
2002-05-03 20:36 Rory Molinari
2002-05-03 21:37 ` Simon Josefsson
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).