diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index cde99412..fe5dd25d 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -908,7 +908,7 @@ public class ImapConnection extends AbstractConnection { conditions.append(operator).append("\"urn:schemas:httpmail:read\" = False"); } else if ("DELETED".equals(token)) { conditions.deleted = !operator.endsWith(" NOT "); - } else if ("UNDELETED".equals(token)) { + } else if ("UNDELETED".equals(token) || "NOT DELETED".equals(token)) { conditions.deleted = Boolean.FALSE; } else if ("FLAGGED".equals(token)) { conditions.flagged = Boolean.TRUE;