[Gambas-user] Mark for a new message from POP3
T Lee Davidson
t.lee.davidson at gmail.com
Wed Dec 22 21:53:54 CET 2021
On 12/22/21 4:54 AM, Mayost Sharon wrote:
> Hello to you
>
> Is given through Pop3Client
> 1. Mark a new message
> 2. Mark a message as read
>
> Thank you very much
The POP3 protocol does not provide for marking messages as read. That needs to be tracked locally.
Also, the _Pop3Client_Message virtual class does not have a 'Read' property. So, you could do something like this:
[code]
Dim hPop3Client As Pop3Client
...
Dim hPop3ClientMessage As _Pop3Client_Message
Dim cReadMailList as New Collection
For Each hPop3ClientMessage In hPop3Client
cReadMailList.Add(False, hPop3ClientMessage.UniqueID)
Next
[/code]
Then, when the mail has been read in your local client, mark it as read:
cReadMailList[hPop3ClientMessage.UniqueID] = True
--
Lee
More information about the User
mailing list