1
0
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:
mguessan 2011-03-07 22:30:25 +00:00
parent b489120d7e
commit 61475f7e87
2 changed files with 3 additions and 1 deletions

View File

@ -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 {
}
}
}
}

View File

@ -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;
}