From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Cesar Crusius Newsgroups: gmane.emacs.devel Subject: Any interest in an XOAUTH2 patch for smtpmail (Gmail 2-factor auth)? Date: Fri, 05 Jan 2018 18:24:48 -0800 Message-ID: <87373j4tcf.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1515205567 19198 195.159.176.226 (6 Jan 2018 02:26:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2018 02:26:07 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.3.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 06 03:26:02 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 1eXeBH-0004Cu-Tj for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2018 03:25:56 +0100 Original-Received: from localhost ([::1]:42348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXeDH-00032P-9Z for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2018 21:27:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXeCF-00030Y-RB for emacs-devel@gnu.org; Fri, 05 Jan 2018 21:26:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXeCB-0001gl-QM for emacs-devel@gnu.org; Fri, 05 Jan 2018 21:26:55 -0500 Original-Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]:40896) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eXeCB-0001gF-Jb for emacs-devel@gnu.org; Fri, 05 Jan 2018 21:26:51 -0500 Original-Received: by mail-pl0-x244.google.com with SMTP id 62so4169785pld.7 for ; Fri, 05 Jan 2018 18:26:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=gtHtxOoP4O/gh2utmctcn4cdJPyXjGEdAscUGM+Ld+4=; b=RKhUpQ9qwNY7GuRkgfsB8ODSN+gJjnS1+zxdzsEkAcj+6sR/DBMk19HmyV7oMkP2i1 IIhMchXFoSadOFqA2lGoVL7cP3LRgQgmuwvs8mkpP3+fr3wjIgjAv+8a1bPPb4XqgU2l KkI+MqzXINI6kBVYj6xHxE6fjRp5ZYjy7deIofqh+ZihqBw8kHlMdCAaL8Lf4ojM7Ta0 GOa8JnEM9zad0tF+7AJROPVbMK1TGSoTplnUGrOhOJjIxYzkpbJR1Bh/vh5cSMljECPM hd74XK86PmflFrG4G7TOXSh6k2YzVn1G5aqle7JdqDXfwN4wY6FkqEIWgeqBxVJ66hC6 E4eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=gtHtxOoP4O/gh2utmctcn4cdJPyXjGEdAscUGM+Ld+4=; b=SWTbAPKCqxIXjlT9QNk4Le1TXDURR+7S9nx3sV1VV/adcACePsO2GwGds+cVmGye6P KcufkNq9tzHuLUT3AnXIgDB4Z6ne3IIC/DWLoj2yX0NdcWtzXwM02+NiWCjytGTELOn2 AzjoWM0Ej6+nPBJpChxdReJdd5j0xQI0N2ulbn7+L7INE0mOU7lgxvjorsl5xeJbk8Om ZyZ6SGmahBBcczDHGLxC0K/ntJbjVDyE27sWaWY6frsG+Oz2tPBu0J6qSS3ueTw9OZDN Ik4mYbZxP7wCzX2+rm9QTESaucAIe8P6PWR88pjaV/SaWw167YAQQOEG8ITFsGF8cH+X 6C4A== X-Gm-Message-State: AKGB3mKnrH37sOetrRTRArEelDeqzMR9i47bGC/+D8b79vyfkMhLPLbg Hgc5nWQ44CR4/PIkOS2P6mSFt2Us X-Google-Smtp-Source: ACJfBot3UXk7a/OZ6zvr7RITVISUrBhniKvr+wHveertxvqVWxJ+muBY1+rEtNOMoiNvDOuugOHS2g== X-Received: by 10.84.150.131 with SMTP id h3mr5007412plh.0.1515205609356; Fri, 05 Jan 2018 18:26:49 -0800 (PST) Original-Received: from cesars-w520 (c-24-4-33-27.hsd1.ca.comcast.net. [24.4.33.27]) by smtp.gmail.com with ESMTPSA id o88sm14582565pfj.175.2018.01.05.18.26.48 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Jan 2018 18:26:48 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::244 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:221631 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi all, I recently had to add XOAUTH2 support in smtpmail to access my two-factor authenticated Gmail account, which turned out to be surprisingly simple (my hack has about 20 lines of code, I guess it would about double to do it properly). It uses oauth2.el, so my plan would be to make smtpmail load that library on demand, in case the new smtpmail-xoauth2 variables are configured. I guess the required functionality could be copy-and-pasted, but that seems a waste. Is there any interest in a patch? =2D-=20 Cesar Crusius --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAEBCAAdFiEEsu/ErKn7yEV7E0FU/X9qSDfQj2EFAlpQM3AACgkQ/X9qSDfQ j2F9KAv+KpDhHa+MiG/9b0su9V3hywtesD7AELrLe2WOAhztm/SF9Urb547NNrxD MIFPHLiEMkXShbFXcDKsgMO5d/lQXKSuNBUOyauz0zXNS4FiVlFgacapks5rxFjX xbg3OJGF7EJY1bHUVCsxtCrw21j5nAsBMZKfgsrg7Csst/Pgk7sGatOaB3REjr1k PZnQF/Q2jtGM3BdRpf3KAc2TdK41dVGE6vsELI9xLNjVzhxRI1huq1jsoRQ72GSO CmwowH6xXjOO4QNxjnft5KiuZp0fTl3TFbKPUVgv2FKEzVHJ6HucUFbSHVSMklAx nzd6oB4XfQ27D28MZQahONXFj9wtE3SZF2sEj0OeNDMbFPOqGr7lD4Emfq6jCZpv ggG0yVigJ/eHD4CU4NDJHkDqvh6oEKvdels+R1n8Lj7ke5JcQifqa4A5f9ozZQcD c2Btsj6HWvOJ3+Ns6jpr0wVCQ34yoGR6fRcFjpX1ECR156YgVU4OIY5VaKQrhzZd u7KjPw9m =g1AW -----END PGP SIGNATURE----- --=-=-=--