From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31621 invoked from network); 3 May 2022 06:38:25 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 3 May 2022 06:38:25 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nlmAy-001fkv-Qy for ml@inbox.vuxu.org; Tue, 03 May 2022 01:38:24 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1nlmAy-008AHX-9R for ml@inbox.vuxu.org; Tue, 03 May 2022 01:38:24 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nlmAx-008AHR-2K for ding@lists.math.uh.edu; Tue, 03 May 2022 01:38:23 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nlmAu-001fkH-DF for ding@lists.math.uh.edu; Tue, 03 May 2022 01:38:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-reply-to:Date:Subject: Cc:To:From:References:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=btGuVUmEh1vuaPi/QbxoVAlDKMiNN9KpheQSy3O+LeE=; b=E786YCQCNvgobcT1jAoU4dS1mt yfTq008UBbcvso+De0Im5DBBnzd0Yr5O1+nRj4zuZh1LM0MZif5JRN4QEzqizMDpaYSZVA2PcCXn6 0OxtCXD8XGO6zqUNhbT//ivRsgI5cGU9t9Av9Y6tBLx/6216PZXWNji1yqcw4X7X8k3o=; Received: from eggs.gnu.org ([2001:470:142:3::10]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlmAn-0002KW-F3 for ding@gnus.org; Tue, 03 May 2022 08:38:16 +0200 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlmAj-0004eT-Rj; Tue, 03 May 2022 02:38:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=btGuVUmEh1vuaPi/QbxoVAlDKMiNN9KpheQSy3O+LeE=; b=HZ1rKMdryQOihV g/MYvuVjZK9Le7dhg8kGv7cJI99L6o8pos0I35CfBZ63ISpmuaxaNjwXl0aD2vekLJhv9Cja+kA+2 vh6tJpYwpa+DHW37ZUDzqs6NXt10Ob+qQnilgSgFRiUb8DBY0A7o3LyQj2IRhnrduw7meH9uWLvnn Jkav7ebeWUdpEU/doNESU4VnVTGHEPKWEUc5LG7W+s5sPNkWtt6A6LTBRAFv/eSerKdQA6RAu9PUp iQFaTjIs4zDQ6jpfOgr9zNqlstucGYWLGVsti5cYHS/Ng0+I6WcaukSxUuy3qjHTisDAnF/GBxJ2u 9ZkWeyTxjtUz7fQk6RmA==; Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:35433) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlmAa-0003MV-P4; Tue, 03 May 2022 02:38:02 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 52FAF27C0064; Tue, 3 May 2022 02:38:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 03 May 2022 02:38:00 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeigddutdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvfevufffjgfkgggtsehttd ertddtredtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdr ohhrgheqnecuggftrfgrthhtvghrnhepudejtdehuddvleffjeekteegvdehleehvdeufe fhueekkeekhedvgfeggeffvefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlih hthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgr shhtmhgrihhlrdhfmh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 May 2022 02:37:59 -0400 (EDT) References: <87sfpswhy2.fsf@mat.ucm.es> <87r15cjhim.fsf@ucl.ac.uk> <877d73duph.fsf@mat.ucm.es> User-agent: mu4e 1.7.13; emacs 29.0.50 From: Tassilo Horn To: Uwe Brauer Cc: ding@gnus.org Subject: Re: gmail+imap+smtp (oauth2) Date: Tue, 03 May 2022 08:27:48 +0200 In-reply-to: <877d73duph.fsf@mat.ucm.es> Message-ID: <87a6bzazp6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk Uwe Brauer writes: > [[S/MIME Signed Part:Undecided]] >>>> "ESF" == Eric S Fraga writes: > >> On Monday, 2 May 2022 at 08:45, Uwe Brauer wrote: >>> There have been some discussion, either on emacs-devel or here, how to >>> make emacs (gnus) work with gmail under those circumstances, that is >>> using oauth2. > >> Uwe, > >> I had the same problem with our institution which uses Exchange and >> moved to multi-factor authentication, i.e. oauth2. I solved this >> problem by using davmail [1]. I don't know if this will work for gmail >> as well but you may wish to try. > > Thanks, when we started with gmail, I tried out dovecot, and there was > a problem, that it started to download every message over and over > when I tried to download new email, I'm using isync (mbsync) to have a bidi-synchronization between several imap mail accounts (fastmail, gmail, work) and local maildir stores. That's the gmail specific part of my ~/.mbsyncrc: --8<---------------cut here---------------start------------->8--- IMAPAccount gmail Host imap.gmail.com User USER@gmail.com # I have my credentials in ~/.authinfo.gpg in the form: # machine imap.gmail.com login USER@gmail.com password APP_PWD force yes # where APP_PWD is an application specific password one can generate # somewhere in the Gmail/Google account settings. PassCmd +"gpg --decrypt --no-tty --for-your-eyes-only ~/.authinfo.gpg 2> /dev/null | grep imap.gmail.com | sed 's/.*password \\([^ ]\\+\\).*/\\1/'" SSLType IMAPS IMAPStore gmail-remote Account gmail MaildirStore gmail-local Path ~/.mail/Gmail/ Inbox ~/.mail/Gmail/INBOX SubFolders Verbatim Channel Gmail Far :gmail-remote: Near :gmail-local: Create Near Remove Near Expunge Both CopyArrivalDate yes Patterns * Sync All SyncState * --8<---------------cut here---------------end--------------->8--- I'm not sure if this application specific password thingy I'm using will work in the future, though. But luckily I've moved away from Gmail in the past years. > besides it fill up my hard disk with additional 13 GB and that I would > like to avoid. But maybe this will be the only way. Both dovecot and isync usually do full synchronizations so you have everything locally. I consider that a good thing because then you can index it for quick local searches. But you can configure mbsync to sync only specific folders. For example, I think many people exclude Gmail's "All Mails" folder. Bye, Tassilo