mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
IMAP: fix LOGOUT implementation to improve SquirrelMail compatibility
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1637 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
b489120d7e
commit
61475f7e87
@ -97,6 +97,7 @@ public class ImapConnection extends AbstractConnection {
|
||||
|
||||
if ("LOGOUT".equalsIgnoreCase(command)) {
|
||||
sendClient("* BYE Closing connection");
|
||||
sendClient(commandId + " OK LOGOUT completed");
|
||||
break;
|
||||
}
|
||||
if ("capability".equalsIgnoreCase(command)) {
|
||||
@ -1712,4 +1713,4 @@ public class ImapConnection extends AbstractConnection {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -262,6 +262,7 @@ public class TestImap extends AbstractImapTestCase {
|
||||
public void testLogout() throws IOException {
|
||||
writeLine(". LOGOUT");
|
||||
assertEquals("* BYE Closing connection", socketReader.readLine());
|
||||
assertEquals(". OK LOGOUT completed", socketReader.readLine());
|
||||
clientSocket = null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user