From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: Aditya Garg <gargaditya08@live.com>
Cc: Junio C Hamano <gitster@pobox.com>,
"git@vger.kernel.org" <git@vger.kernel.org>,
Eric Sunshine <sunshine@sunshineco.com>,
Julian Swagemakers <julian@swagemakers.org>,
Jeff King <peff@peff.net>, Zi Yao <ziyao@disroot.org>,
Rens Oliemans <hallo@rensoliemans.nl>,
Drew DeVault <drew@ddevault.org>
Subject: Re: [PATCH RFC] send-mail: add support for Microsoft Graph API
Date: Sun, 25 May 2025 20:24:57 +0000 [thread overview]
Message-ID: <aDN8mYEJS0ARD1d7@tapette.crustytoothpaste.net> (raw)
In-Reply-To: <20250525110621.64308-1-gargaditya08@live.com>
[-- Attachment #1: Type: text/plain, Size: 2379 bytes --]
On 2025-05-25 at 11:06:32, Aditya Garg wrote:
> 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.
I don't think we should be adding support for proprietary methods of
sending mail. There are two standard methods, which are SMTP and the
sendmail binary, that are well known, well understood, and widely
deployed.
It is well known that Microsoft has invented a lot of proprietary
Outlook-specific formats for messages, such as TNEF and MAPI, which we
should also not support because they are poorly defined and not
specified in an open standard. I would also be opposed to sending mail
in formats or using methods that are proprietary to Google, Amazon, or
any other provider, since we already have clear specifications on how
mail is to be sent that precede this project's existence by some time.
I understand that the Outlook servers may be slow and inefficient as
well as modify the Message-ID, but that's ultimately a problem you need
to address with them and get them to fix. I should note that I don't
have that problem: I run my own Postfix and Dovecot servers which are
very speedy, and I feel confident any other provider could do so as
well. I also have never had that problem sending mail through Google's
SMTP server at work.
If this REST API approach is well defined by an RFC or some other open
specification process that the public can participate in and deployed
among a large number of providers, including several open source
implementations, then we might consider adopting it.
--
brian m. carlson (they/them)
Toronto, Ontario, CA
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 325 bytes --]
next prev parent reply other threads:[~2025-05-25 20:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-25 11:06 [PATCH RFC] send-mail: add support for Microsoft Graph API Aditya Garg
2025-05-25 11:22 ` Aditya Garg
2025-05-25 20:24 ` brian m. carlson [this message]
2025-05-26 1:36 ` Drew DeVault
2025-05-26 3:38 ` Aditya Garg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aDN8mYEJS0ARD1d7@tapette.crustytoothpaste.net \
--to=sandals@crustytoothpaste.net \
--cc=drew@ddevault.org \
--cc=gargaditya08@live.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=hallo@rensoliemans.nl \
--cc=julian@swagemakers.org \
--cc=peff@peff.net \
--cc=sunshine@sunshineco.com \
--cc=ziyao@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox