From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44644 Path: main.gmane.org!not-for-mail From: Rory Molinari Newsgroups: gmane.emacs.gnus.general Subject: imap.el - problem (?) in imap.el Date: Fri, 03 May 2002 13:36:26 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020458418 18788 127.0.0.1 (3 May 2002 20:40:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 3 May 2002 20:40:18 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 173jqj-0004sn-00 for ; Fri, 03 May 2002 22:40:17 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 173joo-0005Z5-00; Fri, 03 May 2002 15:38:18 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 03 May 2002 15:38:33 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id PAA22318 for ; Fri, 3 May 2002 15:38:24 -0500 (CDT) Original-Received: (qmail 29727 invoked by alias); 3 May 2002 20:37:53 -0000 Original-Received: (qmail 29722 invoked from network); 3 May 2002 20:37:53 -0000 Original-Received: from unknown (HELO corp-relay) (fwuser@209.76.153.218) by gnus.org with SMTP; 3 May 2002 20:37:53 -0000 Original-To: ding@gnus.org Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44644 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44644 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