From 49552caea915ba5561fdac220bd7bf4d67a13186 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Tue, 24 Jun 2025 18:43:51 +0700 Subject: [PATCH] mbsync: Fix gmail --- .config/mbsync/config | 37 +++---------------------------------- 1 file changed, 3 insertions(+), 34 deletions(-) diff --git a/.config/mbsync/config b/.config/mbsync/config index a403b92..2e26318 100644 --- a/.config/mbsync/config +++ b/.config/mbsync/config @@ -24,16 +24,6 @@ Remove Both Expunge Both SyncState * -Channel ferano.io.inbox -Far :ferano.io.remote: -Near :ferano.io.local: -Patterns INBOX -Sync All -Create Both -Remove Both -Expunge Both -SyncState * - IMAPAccount gmail Host imap.gmail.com UserCmd "age --decrypt -i ~/.local/credentials/personal ~/.local/credentials/authinfo.age | awk -F ' ' '/mail.gmail.com/ { print $(NF-2);exit; }'" @@ -45,35 +35,14 @@ Account gmail MaildirStore gmail.local Subfolders Verbatim -# The trailing "/" is important Path ~/.mail/gmail/ -Inbox ~/.mail/gmail/Inbox +Inbox ~/.mail/gmail/INBOX Channel gmail Far :gmail.remote: Near :gmail.local: -# Include everything -Patterns * -Sync All -Create Both -Remove Both -Expunge Both -SyncState * - -Channel gmail.inbox -Far :gmail.remote: -Near :gmail.local: -Patterns INBOX -Sync All -Create Both -Remove Both -Expunge Both -SyncState * - -Channel gmail.allmail -Far :gmail.remote: -Near :gmail.local: -Patterns *All* +# Only sync the folders you've checked in IMAP +Patterns "INBOX" "[Gmail]/Sent Mail" "[Gmail]/Drafts" "[Gmail]/Trash" Sync All Create Both Remove Both