From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Fitzsimmons Newsgroups: gmane.emacs.devel Subject: Re: oauth2 support for Emacs email clients Date: Wed, 04 Aug 2021 10:45:21 -0400 Message-ID: References: <52589.36892.953561.24840@gargle.gargle.HOWL> <871r7aubp5.fsf@ucl.ac.uk> <87v94m1fkg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28966"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Roland Winkler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 04 19:32:14 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBKkX-0007NC-0c for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 19:32:13 +0200 Original-Received: from localhost ([::1]:58510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBKkV-0003aa-OL for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 13:32:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBI9B-0008Bd-HJ for emacs-devel@gnu.org; Wed, 04 Aug 2021 10:45:34 -0400 Original-Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:46908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBI97-0006kj-Dv for emacs-devel@gnu.org; Wed, 04 Aug 2021 10:45:28 -0400 Original-Received: by mail-qt1-x836.google.com with SMTP id c5so1499370qtp.13 for ; Wed, 04 Aug 2021 07:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fitzsim-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Tu4yG4NydW6sjcQu+P0ocVj1/13mPdguzAO2/3tMBCU=; b=ZS9SKe8m5TlnDlpPxLVUh82r/Bf76WFdqLH2Uv/d3A/fVjlnyFOAmP3v3HtOt6r9u5 5NX+yFZk4/JbhFWkWLuDjAyz1sX7GEfIF2gg55RfQhsXQ/bsPYHWLXYXTDp8bn5Oaf0g 5q/LPC2EmwiZsmwHEbBhLJd+J6p0ZQdwvA+AHJhbn5JbOJwG9v13l9R6LIzZsBqOzKwl FLMVU/EMcQnZwHOmPBc5oKN+aBtxrXvwugCf5u/VWtA3Aics0bjWLiLIeyqs7evwv/nY 2fscsGjXGZKne0qsxcpPs2F3tIb5CZGuRP3bkoK2Fo/RRds7bb2wk+zY45VslLWPLM+E q/BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Tu4yG4NydW6sjcQu+P0ocVj1/13mPdguzAO2/3tMBCU=; b=OFOr99+QG1K+PBJkKgZn1bVgZiFUFbnnTIqF+ei1fAu4PT1Amor3mnZZ3bjBnIt2Pi mEhlHd+7rkgQG7TXnJTF9V3lgU9d4UW27F6Oj25JUkVngxmuTw4AyrL6H9UqIzeUd0dK S3biSjlCtJbiBILTtbEof86B1lf5qwqYcgztTYOhwAxNZdiuLaNtWcGWHiPyfqKwxJvh Lxp5CTkLOLBe+Eq0AysNk9+ocLtB7rFYSlGIbE8XwbDli/nLRsR8Nkv8sFDDV0PxsUIK 2PFId7vYCFXNNX+IBm6pdYKz4MddRvCwhezLJf4nC0j9vlgisfZryiK4I7uwWUrhLkRm Utxg== X-Gm-Message-State: AOAM532T7lnUvmdF+MnqY85/ysiJXcEsxnvqxAlyXPGWUwzN3YnuHYxn l9XtsqCV2llwxSNNkpXCmvwp6aQmX9TK4Q== X-Google-Smtp-Source: ABdhPJyuuKoR3cWKXeosIydbMeFcAWKPpin9fcjGg8d/RtGbShMkX9LhrYFlZ2Yqx1eSYKdCDqX3BA== X-Received: by 2002:ac8:6e86:: with SMTP id c6mr1356qtv.138.1628088322602; Wed, 04 Aug 2021 07:45:22 -0700 (PDT) Original-Received: from localhost.localdomain (69-165-165-189.dsl.teksavvy.com. [69.165.165.189]) by smtp.gmail.com with ESMTPSA id i18sm884510qtx.80.2021.08.04.07.45.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Aug 2021 07:45:22 -0700 (PDT) In-Reply-To: <87v94m1fkg.fsf@gnu.org> (Roland Winkler's message of "Tue, 03 Aug 2021 14:41:35 -0500") Received-SPF: none client-ip=2607:f8b0:4864:20::836; envelope-from=fitzsim@fitzsim.org; helo=mail-qt1-x836.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272046 Archived-At: Hi Roland, Roland Winkler writes: > On Tue, Aug 03 2021, Eric S Fraga wrote: >> The easiest solution, in the end, for me was to install and run >> davmail to get my emails from the institution. I then use pop (could >> have used imap but I prefer pop in any case) to get email from >> "localhost" running davmail. Davmail takes care of multi-factor >> authentication for me. > > Thanks. I tried this. Indeed, this seems to work quite smoothly. DavMail is a good fallback, but from a Free Software perspective it's also helpful to use/test/mention the native IMAP/SMTP support in Emacs. DavMail speaks a proprietary protocol to the email server. IT departments should configure the email server to also provide support for IETF-standard email protocols. IMAP and SMTP can use OAuth2 for authentication. But to properly support OAuth2 in Emacs, the FSF needs to talk to big email providers like Microsoft and Google and get Emacs registered as an OAuth2 application (like Thunderbird has done), or advocate for some better solution than embedding keys in the application binaries. This was discussed in bug 41386 [1]; I hope the FSF is working on it. Thomas 1. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=41386#104