Re: to logout or not...

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

Re: to logout or not...

2002-10-09 Thread DINH Viet Hoa
session. You have at least to wait for the IMAP response of the command you want to send. Sorry, no can do. For example, when you request a FETCH, you have to wait for the response. If you can wait for the fetch, I think that you can wait for the logout which may be almost immediate

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

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

re: to logout or not...

2002-10-09 Thread Mark Crispin
to me that a good strategy would be to do so selectively. Obviously you don't want to process a SEARCH but it would be helpful to perform a CLOSE or LOGOUT. I don't have a strong feeling about processing buffered commands. I feel that a server should exert effort to complete actions that it already