Archived Forum Post

Index of archived forum posts

Question:

Quickest way to check for POP3 mail

Nov 22 '14 at 10:33

Hi

I am intergrating a POP3 client in my VB6 app and I need to write some sort of notification that there are messages awaiting download from a POP3 server.

Currently I am using: GetUidls() but this can cause a pause if there are many messages

is there an alternative way, I just need to check if there are any messages waiting - I can then get the user to download them interactively

Thanks


Answer

You could simply do a STAT which is;

numMessages = mailman.GetMailboxCount()

this will let you know how many messages are waiting.

Steve