From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uLR5N7rD0mP2OgAAbAwnHQ (envelope-from ) for ; Thu, 26 Jan 2023 19:17:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2AJ6N7rD0mM7yAAA9RJhRA (envelope-from ) for ; Thu, 26 Jan 2023 19:17:30 +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 40F1411319 for ; Thu, 26 Jan 2023 19:17:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pL6my-0001sU-Um; Thu, 26 Jan 2023 13:15:57 -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 1pL6mh-0001qJ-LA for help-guix@gnu.org; Thu, 26 Jan 2023 13:15:47 -0500 Received: from mx2.mythic-beasts.com ([2a00:1098:0:82:1000:0:2:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pL6mf-0000jU-9f for help-guix@gnu.org; Thu, 26 Jan 2023 13:15:39 -0500 Received: from [37.168.149.202] (port=35057 helo=[127.0.0.1]) by mailhub-hex-d.mythic-beasts.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pL6mb-000wNJ-B8; Thu, 26 Jan 2023 18:15:33 +0000 Date: Thu, 26 Jan 2023 19:15:24 +0100 From: Timo Wilken To: Giovanni Biscuolo , Peter Polidoro CC: help-guix@gnu.org Subject: Re: mbsync with XOAUTH2 SASL mechanism User-Agent: K-9 Mail for Android In-Reply-To: <87y1ppfvit.fsf@xelera.eu> References: <87h6ziae15.fsf@polidoro.io> <87edrkgsdx.fsf@xelera.eu> <86wn5bq5pq.fsf@polidoro.io> <20230125175136.gaoonjhvuuifbnqs@lap.twilken.net> <87y1ppfvit.fsf@xelera.eu> Message-ID: <76129804-13E5-4580-AF08-7CCC98425944@twilken.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=timo@twilken.net; keydata= mQINBFgXsMkBEADA+tGtOOhh4mioe8R/u/AT9Y/uzHQQjFwbgn7CBZI1vd+bVcGdUzrSFFJ3Y21g dQWkTRCfQ7HbywZm+BIBzUy12xtK0KFOU9huW+e1IxPdOlARy+3QfbDqbdcyxUmfQEfq6YCCCsF7 ISIhKkpFQm5KoY8072RXE2S8FyvftXkplq5jKKKRZrlAW+FKXRezA6fjewvgNRTLFv7BqHcWyW3X P1c0zjEA9amqFncCzU9Lrnblfn0G3gnJmrznQ3JkBhjc+iNbsT3uVfibpypHl3hB9CeCH+KCf29O WTySV8SJVDmMP2S21LbvEqBvCfNxhrPh8mKj/x0ECC4WmCia5m8oZjMytA4VQjWdZ/7+SBtjgAwJ T9QbWeoI7hyGDhKA/W9eaBwe6TTG3BkxEYkbLyIgVUEbpa7n9emgKoW0d1xHdfdwYC+Nn0HIIulu JY2Fbk1eeCvLNNUiW+PCAR0O5pUaKgYbAg7yZKHfJ7TIw8X2wQHAkGRbP/JV277HI/Kcx6G3cinC 9DbLBEULA6/Q13uw1kII4gO63WiNBm30OySa+2ojPalJv1Xs3tv0mjVeeLU8eAHIpWorY6WcAuoJ UAgsyYTv2Cezon/7SGun2m75+quQSbzwLm25nWXZYnKt435H8XSF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Yz4iDnTD0S5Ml+hJHBR7eSKiNtZ4So22FFuwgdNo/BNgroCupDm64lmpgo9GLgYVRL D8S4vgMa9kNpHoZC774hz3ek14rKE2TkTS8Weq19pyduiYb8A+SwrbnO0+gJQL2OgvZjKMJFhv1C +I9Nvw== X-BlackCat-Spam-Score: 0 Received-SPF: pass client-ip=2a00:1098:0:82:1000:0:2:1; envelope-from=timo@twilken.net; helo=mx2.mythic-beasts.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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-TUID: kY1Vaec4bZMa Hi Giovanni! On 26 January 2023 11:19:22 CET, Giovanni Biscuolo wrote: >Timo Wilken writes: >> Instead, I ended up "borrowing" Thunderbird's client key and secret, >> which has worked fine so far=2E > >thanks for sharing this trick! > >this adds a big dependency in our software stack, but it works, so why >not! :-) Just to be clear: I did not install Thunderbird=2E I do not run Thunderbir= d=2E I only copy-pasted the client key from its source code into my own scr= ipts=2E See below for details=2E >a couple questions: > >- have you tried getmail6 with the mentioned howto? No, I have not, sorry=2E >- to refresh the tokens do you have to periodically run Thunderbird? No, I do not run Thunderbird=2E I use neomutt to read my mail, and specifi= cally for XOAUTH2 I use the "mutt_oauth2=2Epy" script that comes with neomu= tt: https://github=2Ecom/neomutt/neomutt/blob/main/contrib/oauth2/mutt_oaut= h2=2Epy This script handles everything XOAUTH2-related, including refreshing token= s when needed=2E I just call it with its --client-id and --client-secret pa= rameters (among other params; I am on my phone at the moment and cannot loo= k up the full invocation I use), using the values I got from Thunderbirds s= ource code=2E (See also the neomutt documentation: https://neomutt=2Eorg/guide/optionalf= eatures#6-%C2%A0oauthbearer-and-xoauth2-support) Perhaps you can adapt this script to your usecase=2E Cheers, Timo