I'll second what is being said.

Assuimg your org allows entra app registration and either allws you to
consent to the app permissions or will do those two on your behalf, yes,
mutt works just fine.

You can configure mutt with IMAP/SMTP and XOAUTH2 authentication
support, which will use the helper program mutt_oauth2 to trigger the
initial web oauth2 authN and app consent, and then refresh oauth2 tokens
stored in a gpg file.

thanks!

PS The largest annoyances are o365 things... with a really large INBOX
folder, the server times out the connection before you can download the
full header cache. And due to whatever nonsense MS does in its data
centers, mutt will periodically lose its IMAP connection to the
server... sometimes mutt reconencts successfully automatically,
sometimes not.

On Wed, Oct 07, 2026 at 08:37:35AM -0500, Ranjan Maitra via Mutt-users wrote:
> On Wed Oct07'26 05:35:44AM, Andy Arenson wrote:
> > From: Andy Arenson <[email protected]>
> > Date: Wed, 07 Oct 2026 05:35:44 -0400
> > To: [email protected]
> > Subject: Does mutt support Microsoft Graph API?
> > 
> > At my workplace, I lost the ability to use IMAP to connect to our
> > Office 365 email years ago.
> > 
> > A colleague showed me how to use Davmail to connect to Office 365 using
> > EWS. That colleague has since left, and EWS has been phased out.
> > 
> > I've had it suggested that I should now use the Microsoft Graph API.
> > Davmail supports this, so I will probably be able to figure out how to
> > configure Davmail to do so.
> > 
> > But at the moment it seems like Office 365 is not allowing connections
> > from Davmail regardless of what protocol is used.
> > 
> > Does mutt support the Microsoft Graph API?
> > 
> Hi,
> 
> I presume you are wanting to use mutt with your email. You can try your luck 
> with configuring mutt for O365 using the following: 
> https://staff.washington.edu/shrike/unix/configuring-mutt-neomutt-for-imap-access-to-o365-exchange/
> 
> There is substantial evidence online that this method works: however, this 
> needs cooperation of your workplace IT to allow you to add your specific 
> email MUA. Most institutions and MS itself allow it, however I was ultimately 
> not successful in this regard so I was not actually able to try it out. While 
> this would have been easy, I found myself a winding alternative but it all 
> depends on what your institution's parameters are.
> 
> My wife (and colleague) also looked into writing Graph AI calls about eight 
> years ago and was successful in making the calls but the API itself changed, 
> and this made for a horrible cat-and-mouse operation. In those days, they 
> allowed Graph API app registration at my workplace. But my guess is that if 
> they allow the registration of this app, they will allow registration of the 
> mutt (or whatever) Entra ID app, so you are better off doing this directly.
> 
> I am not sure if this helps, but before you sink time into this like me, you 
> may want to find out what your parameters and constraints are. If they allow 
> the Entra app registration (for only a specific user), it will perhaps be a 
> 5-10 minute affair that is no less secure, and perhaps even far more than 
> using Outlook 365 on the browser, but you will need a competent and 
> cooperative  IT shop. 
> 
> Best wishes,
> Ranjan
> 

-- 
********************************
David William Botsch
Programmer/Analyst
@CornellCNF
[email protected]
********************************

Reply via email to