I think I found my way using the Flatten directive.

So the only outstanding issue is that the MaxMessages directive, placed
inside a Channel definition, is not working.

Best,
A.

On Sat, Apr 6, 2013 at 10:57 PM, Alexander Søndergaard <
gammel.ho...@gmail.com> wrote:

> Hi,
>
> I'm using isync (mbsync) pulled from git master today. It's great, fast
> and stable.
>
> I'm trying to make it work with Gmail's non-standard IMAP implementation,
> which is always a bit of a hassle.
>
> I can sync all my folders now, but the resulting folder hierarchy is a bit
> weird:
>
> INBOX -> ~/.mail/inbox
> [Gmail]/All Mail -> ~/.mail/[Gmail]/.All Mail
> [Gmail]/Drafts -> ~/.mail/[Gmail]/.Drafts
> [Gmail]/Trash -> ~/.mail/[Gmail]/.Trash
>
> I have no idea why the . is added to the folder name. Might be a bug. See
> my .mbsyncrc below.
>
> In offlineimap I managed to make things more tidy by mapping folder names
> and removing the hierarchy:
>
> INBOX -> ~/.mail/inbox
> [Gmail]/All Mail -> ~/.mail/all_mail
> [Gmail]/Drafts -> ~/.mail/drafts
> [Gmail]/Trash -> ~/.mail/trash
>
> So my questions are:
>
> 1. Can I achieve a similar mapping of folders with isync?
> 2. Is the aforementioned extra dot in the local foldername a bug?
> 3. The MaxMessages option in my .mbsyncrc file is not working. Is is being
> correctly used?
>
> Thanks.
>
> Best,
> A.
>
> ==.mbsyncrc==
> MaildirStore local
> Path .mail/
> Inbox .mail/inbox
>
> IMAPStore gmail
> Host imap.gmail.com
> User <edited>@gmail.com
> Pass <edited>
> UseIMAPS yes
> CertificateFile /etc/ssl/certs/ca-certificates.crt
>
> Channel gmail-local
> Master :gmail:
> Slave :local:
> Pattern INBOX "[Gmail]/All mail" "[Gmail]/Drafts" "[Gmail]/Trash"
> MaxMessages 1000
> Create Slave
>
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to