Let me preface this by saying I am running this in 2019r2.1.
I am having issues deleting emails from a Gmail account I have connected to a Pop3SecureSocket. I have an event handler set up for MessageDeleted and do get a return when I call Pop3SecureSocket.deletemessage(mailID) but if I check the account, the email has not been deleted. I did notice that deletemessage seems to be depreciated with no replacement. I have also tried SendComamnd(“DELE”) with the appropriate ID but this also does not seem to work.
Is there currently a way to delete an email from a Gmail account?
a) Don’t use Xojo’s classes for emails at all because their functionality is either basic or buggy.
b) Why are you using POP and not IMAP for Gmail?
b) For IMAP I either add the deleted flag or move the email to a trash mailbox.
Some combination of setting Gmail’s POP setting to delete Gmail’s copy of the email when accessed by POP, sending DELE commands after parsing each email and finally sending a “QUIT” at the end of this has solved my issue.