mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
IDLE DONE on "Still here"
This commit is contained in:
@@ -3270,6 +3270,16 @@ public class IMAPProtocol extends Protocol {
|
||||
boolean done = false; // done reading responses?
|
||||
notifyResponseHandlers(responses);
|
||||
|
||||
if (r.isUnTagged() && r.isOK()) // Still here
|
||||
try {
|
||||
DataOutputStream output = (DataOutputStream) getOutputStream();
|
||||
output.writeBytes("DONE");
|
||||
output.write(CRLF);
|
||||
output.flush();
|
||||
} catch (IOException ex) {
|
||||
throw new ProtocolException("IDLE/DONE", ex);
|
||||
}
|
||||
|
||||
if (r.isBYE()) // shouldn't wait for command completion response
|
||||
done = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user