Added workaround for Migadu

master
M66B 2 months ago
parent 538523dded
commit cb821dc04f

@ -1670,8 +1670,13 @@ public class IMAPProtocol extends Protocol {
* @see "RFC2060, section 6.4.2"
*/
public void close() throws ProtocolException {
simpleCommand("CLOSE", null);
}
try {
simpleCommand("CLOSE", null);
} catch (CommandFailedException ex) {
if (ex.getMessage() == null || !ex.getMessage().contains("Mailbox is read-only (opened with EXAMINE)")) // Migadu
throw ex;
}
}
/**
* EXPUNGE Command.

Loading…
Cancel
Save