When a user selects a mailserver and the connection to this mailserver is unsuccessful (state goes from :connecting to :error), we don't handle that at all.
So, essentially, after that, no error message is shown, there are no re-tries and we don't even try to request historic messages. App is essentially unusable.
When the mailserver connection goes to :error, show an error message to a user ("error connecting to the mailserver {mailserver_name}") and 2 buttons ("retry" and "pick another"). When user presses "pick another", navigate him to the mailserver choosing screen.
@errorists and @yenda fyi
thanks @mandrigin

My immediate reaction would be to include an Alert like above
btw we already show the next status in the badge

but this code was broken. Anyway I will add dialog as well
@errorists oh, thank you!
Most helpful comment
thanks @mandrigin
My immediate reaction would be to include an Alert like above