I am syncing with a gmail account. I am currently finding that email in Gmail:"All Mail" that has been archived on the gmail client side, i.e. the inbox tag has been removed, is not syncing to my local maildir. The relevant sections of my mbsyncrc file are below.
IMAPAccount gmail
Host imap.gmail.com
User ********************@gmail.com
Pass ****************************************
SSLType IMAPS
IMAPStore gmail2-remote
Account gmail
MaildirStore gmail2-local
Path ~/.mail/gmail2/
Inbox ~/.mail/gmail2/inbox
SubFolders Verbatim
Channel gmail2-inbox
Far :gmail2-remote:"INBOX"
Near :gmail2-local:
Create Near
Sync All
Expunge Both
SyncState *
Channel gmail2-sent
Far :gmail2-remote:"[Gmail]/Sent Mail"
Near :gmail2-local:sent
Create Near
Sync All
Expunge Both
SyncState *
Channel gmail2-spam
Far :gmail2-remote:"[Gmail]/Spam"
Near :gmail2-local:spam
Create Near
Sync All
Expunge Both
SyncState *
Channel gmail2-drafts
Far :gmail2-remote:"[Gmail]/Drafts"
Near :gmail2-local:drafts
Create Near
Sync All
Expunge Both
SyncState *
Channel gmail2-trash
Far :gmail2-remote:"[Gmail]/Trash"
Near :gmail2-local:trash
Create Near
Sync All
Expunge Both
SyncState *
Channel gmail2-archive
Far :gmail2-remote:"[Gmail]/All Mail"
Near :gmail2-local:archive
Create Near
Sync All
SyncState *
Group gmail2
Channel gmail2-inbox
Channel gmail2-sent
Channel gmail2-spam
Channel gmail2-drafts
Channel gmail2-trash
Channel gmail2-archive
I have tried to fix this by playing around with the settings, but without luck. Is this normal behavior?
ma suspicion is that you have a stale ~/.mail/gmail2/archive/.mbsyncstate from a previous setup.
you can add -D to the command line to see what's going on.
no further info forthcoming.