From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8CIFC+ZT0mNUzwAAbAwnHQ (envelope-from ) for ; Thu, 26 Jan 2023 11:20:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mLgsCuZT0mNEHAAAG6o9tA (envelope-from ) for ; Thu, 26 Jan 2023 11:20:22 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EAB13203A8 for ; Thu, 26 Jan 2023 11:20:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKzM9-0002sy-Lv; Thu, 26 Jan 2023 05:19:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKzM7-0002sl-Dp for help-guix@gnu.org; Thu, 26 Jan 2023 05:19:43 -0500 Received: from ns13.heimat.it ([46.4.214.66]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKzLs-0007xw-E9 for help-guix@gnu.org; Thu, 26 Jan 2023 05:19:29 -0500 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 871C830022E; Thu, 26 Jan 2023 10:19:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9AJe1dmjWCDp; Thu, 26 Jan 2023 10:19:24 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.161.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 262AF30022D; Thu, 26 Jan 2023 10:19:24 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 9887322B5B34; Thu, 26 Jan 2023 11:19:23 +0100 (CET) Received: (nullmailer pid 9129 invoked by uid 1000); Thu, 26 Jan 2023 10:19:22 -0000 From: Giovanni Biscuolo To: Timo Wilken , Peter Polidoro Cc: help-guix@gnu.org Subject: Re: mbsync with XOAUTH2 SASL mechanism In-Reply-To: <20230125175136.gaoonjhvuuifbnqs@lap.twilken.net> Organization: Xelera.eu References: <87h6ziae15.fsf@polidoro.io> <87edrkgsdx.fsf@xelera.eu> <86wn5bq5pq.fsf@polidoro.io> <20230125175136.gaoonjhvuuifbnqs@lap.twilken.net> Date: Thu, 26 Jan 2023 11:19:22 +0100 Message-ID: <87y1ppfvit.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=46.4.214.66; envelope-from=g@xelera.eu; helo=ns13.heimat.it 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674728422; a=rsa-sha256; cv=none; b=aMp2Au/BdStUe6boMNeyGuuIJMqkswT5slbWHSoUHjN3hJRpBfcoFkGvYbB0fMVAz5cAqm GFCmrkZrk3U/biMFaa/PO1DrQTOQhdthtdjINo4DasNTi78Q1hQttURfuCGQeDFjAc/yjV /9OL8X5vIlYljRkjdqttFWbySQuMSb//RZ6wFfbhj/TLNr1EEwkJS9OP9qMyqrgveYcJze lDCZuVk3H3Uts5TDfRv/AlrW/ZdVQwJ3IJsxj/ah0F+XhrEGEV6qNFx66PJaoy7QU4N5pM yOcwNyLYNcbeHpZO7ixdWSBKE5zC3s1ChkhSs1dA/QwWSIkRUmnu76EC+Y4pGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674728422; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=vu50UmF6q+0j5MFbndWXwJqDPEXjNo5NXZA8g4V3Ukc=; b=a7pcFzVZgJZC4OwzLvfpH6P0D/5A8zdIY9jNBxgcq6mYRQFKNjWgx/U6s9LyLajEi/cc3x EJhznJae8AxtUc46XUZaOYvHwLTNbweeZyEKtgdeZPUIhw8F+I5XkbWqcKbr9z2A/PD8BE TD6WRbfi4BCygR2V06J3I0fHz5wRoV1DqqFfwt6CdUhn5pQTITZEy8WfbxEn9A1r6UXaKz YnRwp/N/4FbXEUaVPUPS4gSG4LdCc0jDy/8ebALHUuvR7vWzPu/0pAYmFwPKhS0fQLPti7 1X3tNKFeeLhEx63k+FXYqYIowqeZTu16kDSdGZoQ+KaAysNowcbtY9zX3vIYxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.51 X-Spam-Score: -2.51 X-Migadu-Queue-Id: EAB13203A8 Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: FzF1YJTwxPRG --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Timo, Timo Wilken writes: [...] > Instead, I ended up "borrowing" Thunderbird's client key and secret, > which has worked fine so far. > > Maybe I'm being a bit paranoid, but I don't want to post the literal > key here. You can copy it from mailnews/base/src/OAuth2Providers.jsm > in Thunderbird's source tree (look for "login.microsoftonline.com" in > the kIssuers variable near line 140). thanks for sharing this trick! this adds a big dependency in our software stack, but it works, so why not! :-) a couple questions: =2D have you tried getmail6 with the mentioned howto? =2D to refresh the tokens do you have to periodically run Thunderbird? Thanks! Gio' [...] =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmPSU6oMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSm1YP/RQgZU4NjuO9kR4bNsM2dxZhL6c3FWXkotCQ/Wkx scJb3Jc5n9kckhjdr9bfCND05ELZS0sA3aji5Y0N3NonuAaU1BJmnFMhsviJqtP/ xkpQRY+IZMQzVYI4I17Mj944IpHJ1bHh1ItrPj8TKATIuoOjBVVemQ4xvPkWM1o6 n4/zVigUIJr+JO2kqZbF21ieKzf6xK1uy1YvDx4cZr8JXhsyooJUsAiiCPhJpX2q 4hdhB4G6mM4T27nct2W0fRPL1EOm2I48bTSrPf9GlCA/I1eeOsTPgP+YVja+EuOA AZwllzhQ62/XKsjLFUuBv2NrfIBQeuM5YA1cvsVHC0NQToznK6ZlKZoJ8Gz5Lp/b VA643iG/ZkDcNeFI5N62Rg491thjGiMjjkxjyvWExKG8MOYY0GxuFklx/yc/slve 3bc9p/uKvlUai+6039ddroxSahLvUciGOE8Sm8FJeNxHcQcvQz4sdAHAC2KV4Qh9 apGAXympaMpqdaNNRdc+qGUVApFHY9g60BroXEHByZJ/E5iUNdW/+Wycx4Gu+gkg PLilEmauZycT7c8ZLEH2uhv4nEwpCMkJxyOcRiso0sLqirEDLbK+MgC+UnJxylQS dTe5by4QW71JdYEMh8Gqntt2qgtPqrjUBmbqzSfxutRvWNPWZdbbpLfj1DcpK3lZ 0iyG =g5eQ -----END PGP SIGNATURE----- --=-=-=--