From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: Any interest in an XOAUTH2 patch for smtpmail (Gmail 2-factor auth)? Date: Fri, 05 Jan 2018 21:32:29 -0800 Message-ID: References: <87373j4tcf.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515216882 27868 195.159.176.226 (6 Jan 2018 05:34:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2018 05:34:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (darwin) Cc: emacs-devel@gnu.org To: Cesar Crusius Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 06 06:34:38 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXh7q-0006g6-IA for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2018 06:34:34 +0100 Original-Received: from localhost ([::1]:49032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXh9o-00031U-8a for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2018 00:36:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXh9C-0002z8-Qn for emacs-devel@gnu.org; Sat, 06 Jan 2018 00:35:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXh9B-00022U-T3 for emacs-devel@gnu.org; Sat, 06 Jan 2018 00:35:58 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXh98-0001zL-35; Sat, 06 Jan 2018 00:35:54 -0500 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:35943) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1eXh97-0008Fc-9R; Sat, 06 Jan 2018 00:35:53 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 64F8220AF4; Sat, 6 Jan 2018 00:35:52 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 06 Jan 2018 00:35:52 -0500 X-ME-Sender: Original-Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net [76.234.69.149]) by mail.messagingengine.com (Postfix) with ESMTPA id EF7BF24837; Sat, 6 Jan 2018 00:35:51 -0500 (EST) In-Reply-To: <87373j4tcf.fsf@gmail.com> (Cesar Crusius's message of "Fri, 05 Jan 2018 18:24:48 -0800") Mail-Followup-To: Cesar Crusius , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221632 Archived-At: >>>>> "CC" == Cesar Crusius writes: CC> I recently had to add XOAUTH2 support in smtpmail to access my two-factor CC> authenticated Gmail account, which turned out to be surprisingly simple CC> (my hack has about 20 lines of code, I guess it would about double to do CC> it properly). CC> It uses oauth2.el, so my plan would be to make smtpmail load that library CC> on demand, in case the new smtpmail-xoauth2 variables are configured. I CC> guess the required functionality could be copy-and-pasted, but that seems CC> a waste. CC> Is there any interest in a patch? This sounds useful to me. How will users know to enable the extra behavior? -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2