Git Product home page Git Product logo

Comments (10)

jstedfast avatar jstedfast commented on July 17, 2024 1

Since you are in direct communication with the MS Support, I'm going to close this because I'm 99% sure this is an Exchange issue (or a Office365 permissions issue).

I'll still be listening for notifications on this thread if there is anything you find out and if it is a MailKit issue, I'll reopen it (or you can reopen it).

The MS Support people are probably in a better position to help you at this point.

from mailkit.

jstedfast avatar jstedfast commented on July 17, 2024

This would only make sense, I think, if an INBOX couldn't be found. Do you have a protocol log that I could take a look at?

from mailkit.

lucasnad27 avatar lucasnad27 commented on July 17, 2024

@jstedfast not yet on the protocol log. going to work on putting that together, but need to spent a bit of time getting the app running locally, as it usually runs as an Azure function.

fwiw - I can access these users' inbox (they are technically a "shared" inbox in MS Outlook) from my own outlook account, which has access -- my current working theory is that Inbox is null because of a silent permissions issue 🤷🏻‍♂️ -- hopefully that protocol log will give some additional hints.

from mailkit.

lucasnad27 avatar lucasnad27 commented on July 17, 2024

One other piece of information, I tried Getting the first folder in the personal namespace, as shown below. That throws an index error, indicating that PersonalNamespaces is an empty list.

emailClient.GetFolder(emailClient.PersonalNamespaces[0]);

Working on that protocol log today.

from mailkit.

jstedfast avatar jstedfast commented on July 17, 2024

That suggests to me that probably a NAMESPACE command failed. That's probably also why Inbox is null.

from mailkit.

lucasnad27 avatar lucasnad27 commented on July 17, 2024

Hey @jstedfast I found a workaround for this authentication issue. Not pretty but it's going to do the job for now. I'm still actively engaged with MS support to track down the root cause. I will follow up on this ticket when I have more info -- in case it's helpful for error handling in Mailkit. Feel free to keep this issue open or closed in the meantime. Thanks for your quick responses on this 🙏🏻

from mailkit.

jstedfast avatar jstedfast commented on July 17, 2024

Is this one of those Exchange authentication issues where it says "User authenticated but not connected"?

from mailkit.

lucasnad27 avatar lucasnad27 commented on July 17, 2024

I haven't seen that anywhere in my logs. I do know that the imapClient.IsConnected property returns true.

from mailkit.

jstedfast avatar jstedfast commented on July 17, 2024

It reports true in the case I mentioned as well because there is a connection.

The problem I mentioned is Exchange thinking that there is no connection. It's a very bizarre error that I think (if my memory is correct), it has something to do with the user's Office365 settings not allowing IMAP connections, but the correct OAuth2 credentials were supplied in the AUTH command.

This results in Exchange getting confused and returning all sorts of errors to various commands like NAMESPACE.

from mailkit.

jstedfast avatar jstedfast commented on July 17, 2024

Here's an example: #1494

StackOverflow has a number of these as well, but no logs that I saw in the first few clicks

https://stackoverflow.com/search?q=%5Bimap%5D%5Boffice365%5D+authenticated+but+not+connected

from mailkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.