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

Benoît Minisini gambas at ...1...
Sun Aug 26 05:29:22 CEST 2012


Le 26/08/2012 04:27, Sebastian Kulesz a écrit :
> On Sat, Aug 25, 2012 at 9:18 AM, Benoît Minisini
>
> Please provide any feedback!
>

Another point: the way you retrieve the data in the Send() method is 
false, and it does not respect the protocol.

If an answer is one line, you must read the socket until you have the 
end of line.

If an answer is multi-line, you must read the socket until you have the 
end of multi-line marker ("<CR><LF>.<CR><LF>" I think).

You can use "Line Input" for that. Don't forget to tell your socket that 
the end of line is "CRLF".

You may have to make the socket blocking too, which is not by default.

Regards,

-- 
Benoît Minisini




More information about the Devel mailing list