This is my config file:
MaildirStore local
Path "/home/kparal/tmp/user@gmail.com/"
Inbox "/home/kparal/tmp/user@gmail.com/Inbox"
IMAPStore gmail
RequireSSL yes
Host imaps:imap.gmail.com
CertificateFile /etc/ssl/certs/ca-bundle.crt
User user@gmail.com
Pass PASS
Channel gmail
Master :gmail:
Slave :local:
Sync Pull
Create Slave
Expunge Slave
SyncState *
Pattern *
This used to work with isync 1.0.6:
$ mbsync -c "$MBSYNCRC" "gmail:[Gmail]/Koncepty"
Reading configuration file /home/kparal/tmp/user@gmail.com/mbsyncrc
Resolving imap.gmail.com... ok
Connecting to 173.194.70.108:993... ok
Connection is now encrypted
Logging in...
Channel gmail
Selecting slave [Gmail]/Koncepty... 1 messages, 0 recent
Selecting master [Gmail]/Koncepty... 1 messages, 0 recent
Synchronizing
Expunging slave
And this is now broken with isync 1.1.0:
$ mbsync -c "$MBSYNCRC" "gmail:[Gmail]/Koncepty"
Reading configuration file /home/kparal/tmp/user@gmail.com/mbsyncrc
Channel gmail
Opening master gmail...
Resolving imap.gmail.com... ok
Connecting to imap.gmail.com (74.125.136.108:993)...
Opening slave local...
Connection is now encrypted
Logging in...
Selecting master [Gmail]/Koncepty...
Selecting slave [Gmail]/Koncepty...
Maildir error: '/home/kparal/tmp/user@gmail.com/[Gmail]/' is no valid mailbox
My directory structure:
$ find '[Gmail]'
[Gmail]
[Gmail]/Koncepty
[Gmail]/Koncepty/.mbsyncstate
[Gmail]/Koncepty/cur
[Gmail]/Koncepty/cur/1388233992.4481_1.titan,U=1:2,S
[Gmail]/Koncepty/new
[Gmail]/Koncepty/tmp
[Gmail]/Koncepty/.uidvalidity
what you are seeing is a side effect of proper support for subfolders (the use of slashes in mailbox names was previously entirely unspecified).
you should be able to get the previous behavior by defining a separate IMAPStore with the [Gmail]/ prefix in Path.
but you may want to use the Flatten option instead.
you may find [feature-requests:#5] interesting as well ... prospectively.
Related
Feature Requests: #5
Last edit: Oswald Buddenhagen 2014-01-02
I added Flatten to my local store and it seems to work well. Thanks.
I'm experiencing this same issue trying to setup
mbsyncfor the first time with my Gmail account. Basically I can't get it to sync my Inbox; it just keeps telling me:Maildir error: '/Users/raam/Maildir/' is no valid mailbox@Ripper You said that you added Flatten to your local store and it works, but what did you define as the delim for Flatten? Could you share your working config?
I got it working by setting up separate channels for
INBOXand my other[Gmail]/Folders as described here: https://sourceforge.net/p/isync/mailman/message/31638141/