1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 03:02:22 -05:00

IMAP: fix infinite loop detection

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1669 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-04-15 12:31:18 +00:00
parent 11676ee5fd
commit 0e30d51945

View File

@ -632,7 +632,7 @@ public class ImapConnection extends AbstractConnection {
lastCommand = null;
lastCommandCount = 0;
} else {
String command = line.substring(spaceIndex);
String command = line.substring(spaceIndex + 1);
if (command.equals(lastCommand)) {
lastCommandCount++;
if (lastCommandCount > 100 && !"NOOP".equalsIgnoreCase(lastCommand)) {