This fixed my problem, thankyou, just wandering if you have any idea why the last message in my inbox never gets downloaded? 5/6 always get downloaded but the last one never does. I've got it set to download all messages!
maybe you ar misinterpreting the 5 (or the 6) wrong.
remember:
B4X:
Sub POP_ListCompleted (Success As Boolean, Messages As Map)
Log("List: " & Success)
If Success Then
For i = 0 To Messages.Size - 1
Pop.DownloadMessage(Messages.GetKeyAt(i), True) 'Download all messages and delete them
Next
Else
Log(LastException.Message)
End If
POP.Close 'The connection will be closed after all messages are downloaded
End Sub
If you mailbox contins 6 messages you will download 0 to 5