diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index d1241600..49a9ff4d 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -242,7 +242,7 @@ public class ImapConnection extends AbstractConnection { boolean or = false; while (tokens.hasMoreTokens()) { - String token = tokens.nextToken(); + String token = tokens.nextToken().toUpperCase(); if ("OR".equals(token)) { or = true; } else if (token.startsWith("OR ")) {