o Fix an asynchronous mode using callbacks?
Is it useful ? pop3 seems synchronous to my mind... there's no reason to ask a list of messages and do anything before having that list..
Sometimes it is useful. Some examples:
A GUI mail client that wants to process GUI-events while waiting for the list.
A more general message client that wants to retrieve information from several pop, news and rss sources in parallel.
A webmail interface (like IMHO), talking to a pop server. It needs to be able to process other user's request while geting one user's list of messages.
/ Niels Möller (igelkottsräddare)
Previous text:
2003-10-09 08:47: Subject: Re: bugs and pop3
Some comments on the pike code: o Maybe combine send_user and send_password to one function? Or is it useful to do one without the other?
Mmmh no, one isn't usable without the other.
o This looks bogus:
do { recv = socket->gets(); } while(!recv);
Doesn't it hang the process if an I/O error occurs there or if the server has closed the connection?
I thought that socket->gets() would throw an error, thus breaking the loop. Isn't it the case ? What is the behaviour of gets() when an error occurs ?
o Fix support for encryption over TLS (aka SSL)?
I don't know anything about TLS.. Do you have an example somewhere ?
o Fix an asynchronous mode using callbacks?
Is it useful ? pop3 seems synchronous to my mind... there's no reason to ask a list of messages and do anything before having that list..
I agree with the other comments. Vincent.
/ Brevbäraren