diff --git a/src/com/fsck/k9/mail/store/ImapStore.java b/src/com/fsck/k9/mail/store/ImapStore.java index 11981e5ec..53daaf555 100644 --- a/src/com/fsck/k9/mail/store/ImapStore.java +++ b/src/com/fsck/k9/mail/store/ImapStore.java @@ -892,7 +892,8 @@ public class ImapStore extends Store { return true; } catch (IOException ioe) { throw ioExceptionHandler(mConnection, ioe); - } catch (MessagingException me) { + } catch (ImapException ie) { + // We got a response, but it was not "OK" return false; } } @@ -920,7 +921,8 @@ public class ImapStore extends Store { encodeString(encodeFolderName(getPrefixedName())))); mExists = true; return true; - } catch (MessagingException me) { + } catch (ImapException ie) { + // We got a response, but it was not "OK" return false; } catch (IOException ioe) { throw ioExceptionHandler(connection, ioe); @@ -950,7 +952,8 @@ public class ImapStore extends Store { connection.executeSimpleCommand(String.format("CREATE %s", encodeString(encodeFolderName(getPrefixedName())))); return true; - } catch (MessagingException me) { + } catch (ImapException ie) { + // We got a response, but it was not "OK" return false; } catch (IOException ioe) { throw ioExceptionHandler(mConnection, ioe);