Hi,
I tested this on a gmail account, obviously if I have it set to delete emails after they have been downloaded by pop3 they are deleted even if I only call Fetch. But if I set it to keep a copy in the inbox, the emails sit there even if I call DeleteMessage on the Pop3Client (tried calling also CommitDeletes, same result), they are never deleted. That makes the method kind of useless…
Also, is there any reason why it isn’t possible to use UniqueId for fetching and deleting with the Aspose Pop3Client as it is with ImapClient? From what I read, Pop3 servers also use unique message ids…
Thanks,
Martin, Y Soft
Hi Martin,
Thank you for contacting Aspose support team.
I have gone through all of your requirements and following are my findings respectively.
ysoft.team:
I tested this on a gmail account, obviously if I have it set to delete emails after they have been downloaded by pop3 they are deleted even if I only call Fetch.
I tried this by using my test gmail account where un-read emails were present. At server I set the property to delete message from Gmail server after pop operation, however I observed that no message is deleted after the fetch message. Could you please confirm, which version of Aspose.Email is used for this testing as it does not delete message here using Aspose.Email for .NET 3.8.0?
ysoft.team:
But if I set it to keep a copy in the inbox, the emails sit there even if I call DeleteMessage on the Pop3Client (tried calling also CommitDeletes, same result), they are never deleted. That makes the method kind of useless.
This feature is tested using another library Limilabs and it is found that its behavior is also similar to Aspose.Email library. Thus on server side, if option is set to “delete Gmail’s copy”, then DeleteMessage() works, otherwise this function does not work. We request you to spare us little time, as we are further analyzing this behavior and will share our findings soon.
ysoft.team:
Also, is there any reason why it isn’t possible to use UniqueId for fetching and deleting with the Aspose Pop3Client as it is with ImapClient? From what I read, Pop3 servers also use unique message ids…
I have logged it as an enhancement ticket in our issue tracking system under id:NETWORKNET-34275. Development team will look into it and will share their findings with us. I will write back here as soon as some feedbak is received from the developers.
Please feel free to write us back if you have any other query related to Aspose.Email.
The issues you have found earlier (filed as NETWORKNET-34275) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Thank you, I have tested the deleting by unique ID and it works if the server is set to delete messages accessed by POP3.
Just to confirm, if the server is not set to delete messages accessed by POP3 (I tried both mark as read and keep copy in inbox), delete is not working, is this a hard limitation of how the protocol works, or are you still investigating if it is possible to still delete the messages?
Hi Martin,
It is nice to know that your problem is resolved. I would like to share that if server is not set to delete messages accessed through POP3, they cannot be deleted.
Please feel free to write us back if you have any other query related to Aspose.Email.