Search All Forums
Dart Home | PowerTCP Winsock for ActiveX | Custom Development Reply | PowerTCP Winsock for ActiveX Topics | Forums   
AuthorForum: PowerTCP Winsock for ActiveX
Topic: How to read only unseen(unread or new) mails

Posts: 1
Member Since: 07/05/01
posted July 5, 2001 1:07 AM

I want to read only the new mails (or unread or unseen) messages from the mail server using the Winsock control & using TCP. But I am not able to do it. I am getting all the messeges from the server, read messeges as well as new messeges. I tried to find out the solution but not succeeded. Can anybody help me? please !!!

Thanks in advance.
K M Drake

From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 5, 2001 1:20 PM

One option would be to have your program keep track of the messages it has already collected (for example, a collection of message UIDLs). Then, when you have logged in to the server, send a UIDL command. The server will return a list of UIDLs. You could then compare this list with your collection, and then only Get the new messages.

K M Drake
Dart Tech Support

From: rome, Italy
Posts: 3
Member Since: 06/08/06
posted September 13, 2007 1:00 PM

Hi there!
In order to read unseen mail I tryed to use the above mentioned "UIDL " using
Tcp1.Receive S
Page = Page + s.
The last unique identifier expected was
803 3021-989912021 (803 mails in the mailbox) but all I get is the list truncated at position 78 and not 803. It seems to be a buffer problem but I've no idea to solve the problem. Could U help ?
Reply | PowerTCP Winsock for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX