Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth 2 fails for IMAP on Android with Outlook #7762

Open
2 tasks done
gafenton opened this issue Apr 17, 2024 · 5 comments
Open
2 tasks done

OAuth 2 fails for IMAP on Android with Outlook #7762

gafenton opened this issue Apr 17, 2024 · 5 comments
Labels
type: bug Something is causing incorrect behavior or errors unconfirmed Newly reported issues awaiting triage or confirmation

Comments

@gafenton
Copy link

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

App version

6.802

Where did you get the app from?

Google Play

Android version

14

Device model

Galaxy S23 Ultra SM-S918W

Steps to reproduce

Sorry, the steps to reproduce is MS Outlook (or something) asking the K-9 app to re-authenticate. Or at least I think that is the problem.
K-9 just then gives the spinning circle forever. Restarting just gives the spinning circle forever. My mailer on other computers continue to accept mail without problem.
I'm using K-9 on a Samsung Galaxy S23 Ultra and my email incoming server is outlook.office365.com, outgoing is smtp.office365.com, both using authentication method OAuth2. I'm using my work account.
I used to be able to solve this problem (2022 or so?) by going to Settings --> myaccount --> Fetching Mail --> Incoming Server and just clicking on Next. This used to bring up my work account login, followed by the MS Authenticator. Now it just deletes my account credentials, so far as I can tell, and lands me on "Welcome to Outlook" -- all inbox, sent, etc folders empty. The solution so far is to delete my account and then build it again.

Expected behavior

I would expect that when OAuth2 reauthentication is requested, that K-9 would open the reauthentication dialog boxes and then communicate accordingly with MS Authenticator.

Actual behavior

Just hangs with a spinning circle. I've no idea what K-9 is actually doing.

I want to also note that I tried to report this issue by signing up to the K-9 Mail Forum. But it would never send me a confirmation email, despite my asking it to resend 3 times and my repeatedly checking my junk folder. Something wrong there?

Logs

Sorry, there are no logs. K-9 didn't think it had a problem.

@gafenton gafenton added type: bug Something is causing incorrect behavior or errors unconfirmed Newly reported issues awaiting triage or confirmation labels Apr 17, 2024
@Croydon
Copy link
Contributor

Croydon commented May 27, 2024

This is confusing to read. This repository is about the email client. If you have problems with the forum that you should report this somewhere else. Or at least in a separate issue here

@gafenton
Copy link
Author

To be clear: I am using the K-9 mailer on my Samsung S23 Ultra phone via IMAP from outlook.office365.com (SSL/TLS, port 993) using OAuth 2.0 authentication. Every so often something demands authentication and K-9 does not respond correctly. It just spins forever and never brings you to the re-authentication dialogs.

What I do to get things working again is delete my account and then add it back again from scratch. This brings up the proper authentication process and all is good again for a few weeks (except that I often have to go through and reset my preferred settings).

Evidently, K-9 does know how to authenticate, but it just fails to do so when asked to re-authenticate.

ASIDE: Agreed. K-9 Mail Forum seems to be broken, so I assume that I can only report this problem here...? Anyhow, please don't get confused by my problems with the K-9 Mail Forum.

@kewisch kewisch changed the title forum.k9mail.app fails to send confirmation email for new user, and OAuth 2 fails for IMAP on Android with Outlook OAuth 2 fails for IMAP on Android with Outlook Oct 18, 2024
@kewisch
Copy link
Member

kewisch commented Oct 18, 2024

Is this still an issue in Thunderbird for Android?

@kewisch kewisch added the status: needs information Needs more information to proceed label Oct 18, 2024
@gafenton
Copy link
Author

Yes. Whenever Outlook wants to re-authorize, I have to delete my email account and reinstall it. I had to do this on Monday again (Oct 14). K-9 doesn't connect to Microsoft's Authenticator. I haven't figured out any other workaround.

@github-actions github-actions bot removed the status: needs information Needs more information to proceed label Oct 18, 2024
@sconim
Copy link

sconim commented Nov 16, 2024

Like FairEmail does, I would suggest adding an option to reauthorize an Outh2.0 account. This would avoid the need to delete and add an account, with all the involved in inconveniences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something is causing incorrect behavior or errors unconfirmed Newly reported issues awaiting triage or confirmation
Projects
None yet
Development

No branches or pull requests

4 participants