> SyncPOP3Cli.MsgNum := MsgNum; > SyncPOP3Cli.StatSync; How do you set the value of MsgNum?
Why do you want to send it before asking for the total number of messages on the POP3 server? > SyncPOP3Cli.MsgNum := MsgNum; > SyncPOP3Cli.ListSync; Why do you ignore the result of the ListSync command? It returns something like this: > LIST +OK 129 messages (1117600 octets) < +OK 129 messages (1117600 octets) 1 736 2 19878 3 2318 4 2645 where the first number on each line is the msgnum followed by the size. > SyncPOP3Cli.MsgNum := MsgNum; > SyncPOP3Cli.UidlSync; Why do you ignore the result of the Uidl command? This also rreturns the msgnum with a unique ID for each email. +OK 129 messages (1117600 octets) < +OK 129 messages (1117600 octets) 1 sm_0000B118_5209c1a8021649268294d580646434ee 2 sm_0000B119_5209c1a8021649268294d580646434ee 3 sm_0000B11A_5209c1a8021649268294d580646434ee > SyncPOP3Cli.MsgNum := MsgNum; > SyncPOP3Cli.RetrSync; Which message are you trying to read? You should have parsed either of the previous commands and then set the msgnum from the first argeument on each line of one of the lists. In the simplest case, you loop incrementing msgnum one at a time, however not all POP3 servers will necessarily return consectutive message numbers. All of this is clearly illustrated in the POP3 demo application. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be