> > 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 will see it because it is TCP (reliable) layer.

Forgive me, I should have been more specific.  The server will see the 
LOGOUT but it may not process it.  (Is it guaranteed that the server will 
see it?  I am hazy about how TCP drains connections.)

> > Seems to me that a more critical question in the circumstance is 
> whether or
> > not to send a CLOSE command if the session is in the selected state (so
> > that expunging is performed).  But since you don't raise that question
> > maybe you already dealt with it.
>
>expunging is done on EXPUNGE.

And on CLOSE.

>CLOSE has to be sent before any other new SELECT.
>
>but generally, IMAP servers accept SELECT without CLOSE and do the
>required operations implicitely.

I don't see what this has to do with the matter at hand.

Pete


Reply via email to