1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-02 00:25:10 -04:00

Make sure an IOException is always passed through as MessagingException

This is important for the code handling pending actions in
MessagingController. If a non-permantent MessagingException is
encountered, the pending action is retried later.

Fixes issue 3696
This commit is contained in:
cketti 2012-01-20 19:50:07 +01:00
parent 96b0a7b28b
commit 32a29f131b

View File

@ -989,7 +989,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;
}
}
@ -1017,7 +1018,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);
@ -1047,7 +1049,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);