mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-02 08:35:08 -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:
parent
96b0a7b28b
commit
32a29f131b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user