diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index b1825db3..1569d6ee 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -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)) {