ottercat Member Licensed User Aug 23, 2019 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Aug 25, 2019 #2 Code: Copy Sub POP_ListCompleted (Success As Boolean, Messages As Map) Log("List: " & Success) If Success Then For Each id In Message.Keys Log(id) Next End If End Sub Upvote 0
Code: Copy Sub POP_ListCompleted (Success As Boolean, Messages As Map) Log("List: " & Success) If Success Then For Each id In Message.Keys Log(id) Next End If End Sub
ottercat Member Licensed User Aug 26, 2019 #3 Actually I wanted the uid for the email. I guess I'll have to extract it from the Message-ID entry in the headers. Upvote 0
Actually I wanted the uid for the email. I guess I'll have to extract it from the Message-ID entry in the headers.
ottercat Member Licensed User Aug 26, 2019 #4 The solution is to save the message count and save that number in the registry and then download from that number onwards. Upvote 0
The solution is to save the message count and save that number in the registry and then download from that number onwards.