From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt H To: 9fans@cse.psu.edu Message-Id: <20020206131146.6639e053.matt@proweb.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [9fans] upas/fs -f/imap & Courier Date: Wed, 6 Feb 2002 13:11:46 +0000 Topicbox-Message-UUID: 4d54edd4-eaca-11e9-9e20-41e7f4b1d025 Well I eventually got it to log in OK this bit relies on the text output of the OK message from the IMAP server which is imlpementation dependent and not part of the spec (see the OK line below for what Courier outputs) 272c276,277 < if(!isokay(s) || strstr(s, "IMAP4")==0) > if(!isokay(s) || strstr(s, "IMAP")==0) However even when I got it to log in it failed reading (debug output below) it ran out of lines to read and ended returning Eio ("i/o error") in this routine static char* imap4resp(Imap *imap) { char *line, *p, *ep, *q, *r, *verb; int n; while(p = Brdline(&imap->b, '\n')){ .. snip } return Eio; } <- * OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc. See COPYING for distribution information. -> 9x1 LOGIN matt $PASSWORD <- 9x1 OK LOGIN Ok. -> 9x2 SELECT Inbox <- * FLAGS (\Answered \Flagged \Deleted \Seen \Recent) <- * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen)] Limited <- * 59 EXISTS <- * 0 RECENT <- * OK [UIDVALIDITY 1010939472] Ok <- 9x2 OK [READ-WRITE] Ok -> 9x3 STATUS Inbox (MESSAGES UIDVALIDITY) <- * STATUS "Inbox" (MESSAGES 59 UIDVALIDITY 1010939472) <- 9x3 OK STATUS Completed. -> 9x4 UID FETCH 352 RFC822.SIZE <- * 2 FETCH (UID 352 RFC822.SIZE 1749) <- 9x4 OK FETCH completed. -> 9x5 UID FETCH 352 RFC822.HEADER <- * 2 FETCH (UID 352 RFC822.HEADER {1305} <- 9x5 OK FETCH completed. -> 9x6 UID FETCH 352 RFC822.TEXT <- * 2 FETCH (UID 352 RFC822.TEXT {444} <- 9x6 OK FETCH completed. download 398: error in initial handshake download 399: error in initial handshake download 401: error in initial handshake .. .. one for each message in my Inbox!