Re: to logout or not...

2002-10-09 Thread Arnt Gulbrandsen
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

Re: to logout or not...

2002-10-09 Thread DINH Viet Hoa
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. I don't

Re: to logout or not...

2002-10-09 Thread Pete Maclean
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. 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. I

Re: to logout or not...

2002-10-09 Thread DINH Viet Hoa
I find this a tough question to answer. My inclination is just to close the connection but I cannot offer much justification for that. One consideration is that, if you send a LOGOUT and then immediately close the connection, it seems likely that the server will never see the LOGOUT. it

Re: to logout or not...

2002-10-09 Thread Pete Maclean
I find this a tough question to answer. My inclination is just to close the connection but I cannot offer much justification for that. One consideration is that, if you send a LOGOUT and then immediately close the connection, it seems likely that the server will never see the LOGOUT.

re: to logout or not...

2002-10-09 Thread Mark Crispin
If you do not send a LOGOUT and just close the connection: Depending upon how the operating system fields the event to the server, the server will see it as a Hangup (SIGINT), Terminated (SIGTERM), or as End of file on stdin. In my experience, the last is the most common. If the server logs

Re: to logout or not...

2002-10-09 Thread Arnt Gulbrandsen
Mark Crispin [EMAIL PROTECTED] There are worse consequences. ... The result is that the flag changes are lost. Good point. The only excuse for a client not to send a proper LOGOUT is if the client crashes. The LOGOUT command is in the protocol for a reason, and that reason was not

re: to logout or not...

2002-10-09 Thread Mark Crispin
On Wed, 09 Oct 2002 11:42:52 -0400, Pete Maclean wrote: Mark, thank you for setting us straight on this. For me, another question arises: when a server detects a connection break, should it process any IMAP commands that it has pending for the session, or should it discard them? Seems to