I want to retrive only unread information from mail server with VB6 and winsock component, how can I do this?
Thanks in advance
Printable View
I want to retrive only unread information from mail server with VB6 and winsock component, how can I do this?
Thanks in advance
Hmmnn.. There's no such unread information or email message in the mail server's maildrop.. This could only happen in an email client like MS Outlook Express for beautification.. What you could do in the message in the maildrop is to copy/download or delete..
The winsock is just an interface so you need to learn a protocol in order to access the maildrop and communicate with the server. Probably, try to search the web for the POP3 or IMAP protocol. You may check also the FAQ regarding sending email with VB, this may help though..
If I remember correctly, pop3 have a HEAD command wich return only the header of an email, and if I understand correctly, email clients like outlook store thoses info somewhere in order to know which message have already been downloaded. I suggest you to read some RFC about pop3 (rfc1939) or get a good pop3 ocx.
The MS Outlook Express has its own database to store the message, hence uses the message-id for identification.. And it does not retain the message from the server but deletes it once downloaded;)..