git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH RFC] send-mail: add support for Microsoft Graph API

From
Aditya Garg <gargaditya08@live.com>
Date
May 25, 2025, 11:22 UTC
Message-ID
<PN3PR01MB95974D6A19D6C53776BE4BAEB89AA@PN3PR01MB9597.INDPRD01.PROD.OUTLOOK.COM>
In-Reply-To
<20250525110621.64308-1-gargaditya08@live.com>
On 25/05/25 4:34 pm, Aditya Garg wrote:
Show 24 quoted lines
> Apart from SMTP, Microsoft also provides a REST API, branded as
> Microsoft Graph for sending mails. Upon testing a bit, I have
> found a few benefits over SMTP. Firstly, SMTP servers of Microsoft
> are kinda slow. On an average, initialising the SMTP server even
> on a fast internet connection takes around 8-10 seconds with
> send-email. Once initialised, subsequent messages sometimes also
> face delays, taking around 3-5 seconds per message, and other
> times they are sent almost instantaneously. Secondly, their SMTP
> server does not respect the Message-ID specified by the user and
> replaces it with their own generated string.
> 
> Microsoft Graph API solves both these problems. It is extremely
> fast, taking around 1 second to send a series of 5 patches, and
> also respects the Message-ID specified by the user.
> 
> After this patch, users can use the graph API by having their
> config as:
> 
> [sendemail]
> 	useMSGraph = true
> 	MSGraphUser = yourname@outlook.com
> 
> The API requires an OAuth2.0 access token for authentication, and
> users can either generate them manually, or use a credential helper
Also, if someone is interested in testing, you can use a small credentialhelper for msgraph here:
https://github.com/AdityaGarg8/git-credential-email/tree/msgraph
Previous: Aditya GargNext: brian m. carlson
Message 2 of 5 in “send-mail: add support for Microsoft Graph API”
  1. send-mail: add support for Microsoft Graph APIAditya Garg, May 25, 2025
  2. Aditya GargMay 25, 2025
  3. brian m. carlsonMay 25, 2025
  4. Drew DeVaultMay 26, 2025
  5. Aditya GargMay 26, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.