On Wed, Feb 20, 2002 at 12:37:47AM -0500, Greg Hodgins wrote:
> Also if I telnet to port 143 directly I don't seem to get any valid
> responses, although I am not sure what the IMAP protocol is.
> 
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> * OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc.  See
> COPYING for distribution information.
> login
> login NO Error in IMAP command received by server.
> login username password
> login NO Error in IMAP command received by server.

Every IMAP command needs to be preceeded by a tag, which is used to figure out
which responses correspond to which commands.  A tag is just any string, below
I have used numbers.

For example:

* OK Courier-IMAP ready. Copyright 1998-2000 Double Precision, Inc.  See COPYING for 
distribution information.
1 LOGIN username password
1 OK LOGIN Ok.
2 EXAMINE INBOX
* FLAGS (\Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS ()] No permanent flags permitted
* 30 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1012309835]
2 OK [READ-ONLY] Ok
3 LOGOUT
* BYE Courier-IMAP server shutting down
3 OK LOGOUT completed

Adam.

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to