B4J Question pop3 message key

Dan Cox

Member
Licensed User
Is there a way to retrieve the actual key that the pop3 server uses internally to tag messages. I tried Messages.GetValueAt(i) but this appears to just be the message size unless I'm misinterpreting what I'm seeing.

I need to track what messages have been downloaded and what is new on the server. The messages need to stay on the server but new ones need to be acted upon. There will be thousands and thousands of messages in a short period of time so downloading the entire message archive everytime is not feasible. Downloading the first few lines won't work either since nothing seems to be unique about the messages in the headers. I know there is an underlying scheme that commercial email clients use to track this.
Thanks
 

Dan Cox

Member
Licensed User
Actually I wanted the uid for the email. I guess I'll have to extract it from the Message-ID entry in the headers.
 

Dan Cox

Member
Licensed User
The solution is to save the message count and save that number in the registry and then download from that number onwards.
 
Top