[Gambas-devel] [RFC] Gambas implementation of the pop3 protocol

Benoît Minisini gambas at ...1...
Sun Aug 26 04:53:13 CEST 2012


Le 26/08/2012 04:27, Sebastian Kulesz a écrit :
>
> Here is an updated project with the minimal command set defined by the
> specification implemented.
>
> I believe the component should be strictly synchronous, as the data
> *needs* to be processed after being downloaded, contrary to the
> HttpClient where the raw data can be used depending on the
> application. Maybe an async implementation can be made once the
> gb.task component is mature enough.
>
> Please provide any feedback!
>

As soon as you have the Task class, you can embed a synchronous 
Pop3Client in it and retrieve your mails in the background. No need to 
implement an asynchronous Pop3 client!

Of course, as the returned data is serialized/deserialized through a 
file, you can't send megabytes of data or share any object created in 
the background task.

-- 
Benoît Minisini




More information about the Devel mailing list