mbsync: Fix gmail

This commit is contained in:
Joseph Ferano 2025-06-24 18:43:51 +07:00
parent dd61440e6a
commit 49552caea9

View File

@ -24,16 +24,6 @@ Remove Both
Expunge Both Expunge Both
SyncState * 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 IMAPAccount gmail
Host imap.gmail.com Host imap.gmail.com
UserCmd "age --decrypt -i ~/.local/credentials/personal ~/.local/credentials/authinfo.age | awk -F ' ' '/mail.gmail.com/ { print $(NF-2);exit; }'" 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 MaildirStore gmail.local
Subfolders Verbatim Subfolders Verbatim
# The trailing "/" is important
Path ~/.mail/gmail/ Path ~/.mail/gmail/
Inbox ~/.mail/gmail/Inbox Inbox ~/.mail/gmail/INBOX
Channel gmail Channel gmail
Far :gmail.remote: Far :gmail.remote:
Near :gmail.local: Near :gmail.local:
# Include everything # Only sync the folders you've checked in IMAP
Patterns * Patterns "INBOX" "[Gmail]/Sent Mail" "[Gmail]/Drafts" "[Gmail]/Trash"
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*
Sync All Sync All
Create Both Create Both
Remove Both Remove Both