> 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.

> 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.
CLOSE has to be sent before any other new SELECT.

but generally, IMAP servers accept SELECT without CLOSE and do the 
required operations implicitely.

-- 
DINH V. Hoa,
libEtPan! - a mail library - http://libetpan.sourceforge.net

"sunZ ! capitaine de soirées"

Reply via email to