Mike Mertsock wrote: > > I asked the cfx_pop3 guys at www.web-architect.co.uk and they said that the POP3 > protocol does not have the ability to determine whether a message is unread.
That is correct. However, if you give a LIST command to a POP server it will return a list of messages and each message will have a unique ID. That ID is guaranteed to be unique through different sessions. So if you store a list of IDs on the client side, you can determine if a message is new. And if it is new, it is unread. > To count unread messages, we will need to find something that can talk to the server > through through IMAP. Telnet can. Example telnet session: > telnet mail.oli.tudelft.nl 143 > > * OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc. See COPYING for > distribution information. >> a0001 LOGIN <username> <password> > a0001 OK LOGIN Ok. >> a0002 SELECT INBOX > * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent) > * OK [PERMANENTFLAGS (\Draft \Answered \Flagged \Deleted \Seen)] Limited > * 416 EXISTS > * 0 RECENT > * OK [UIDVALIDITY 1041520561] Ok > a0002 OK [READ-WRITE] Ok >> a0003 LOGOUT > * BYE Courier-IMAP server shutting down > a0003 OK LOGOUT completed In this case, there are 0 new messages. Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm