DINH Viet Hoa <[EMAIL PROTECTED]>
> > if I (as an IMAP client) have to exit quickly and have an open IMAP
> > connection, I can't wait around for the IMAP server's responses.
> 
> What is the reason for this ?

I can think of four possible reasons right away. There might be more.

1. The user closes the MUA's window.

2. The user logs out, and the session manager tells applications to save
their state and exit quickly.

3. The application is told that the machine will suspend in 0.1 seconds (a
laptop, typically).

4. The application runs on unix and receives e.g. SIGINT.

> You have at least to wait for the IMAP response of the command you
> want to send.

Sorry, no can do.

> > In this case, should I send LOGOUT and immediately close the TCP
> > connection, or should I just close the TCP connection?  I can't quite make
> > up my mind.
> 
> but in all cases, you can just close the connection but it won't be 
> considered as a good IMAP client.

If I have to choose, I'd rather write a good application than a good IMAP
client.

--Arnt

Reply via email to