Hello there,

I'm trying to use mbsync in order to backup my mail accounts, but I'm
facing strange behavior (or misconfiguration).

My goal is to get the following:

~/Mails/
  `- Account1
  | `- Subfolders
  `- Account2
    `- subfolders
   ...

I'm currently using the following configuration (only one account for
the moment):

-----8<--------SNiP--------8<-----
MaildirStore f-u-local
Path ~/Mails/Account1/.
Inbox ~/Mails/Account1/
Flatten .

IMAPStore f-u-remote
Host imap.provider.org
User cycyx
Pass ********
UseIMAPS yes
CertificateFile ~/conf/certs/imap.provider.org.pem

Channel Account1
Master :f-u-remote:
Slave :f-u-local:
Patterns * !*Projets* !*Listes* !*Admin !*Queue !*Junk
Create Both
SyncState *
CopyArrivalDate yes
-----8<--------SNiP--------8<-----

First issue:
If I "mkdir ~/Mails/Account1/", mbsync complains about "no valid
mailbox". If I "maildirmake ~Mails/Account1/" it's OK, but my "cur"
directory is empty (I have 28 mails in my INBOX on the server).
I can't seem to sync my INBOX. I don't even know where mbsync is trying
to sync it... (plus I have an .mbsyncstate in every subfolder)

Second issue:
On my server (the IMAP server is dovecot), my folder hierarchy is as
follow
.Amazon
.Divers
.Misc
...
On my local machine, mbsync creates:
.INBOX.Amazon
.INBOX.Divers
.INBOX.Misc
...

How can I get rid of the ".INBOX" part (if possible)?

Last, I just took a look at the file mbsynrc.sample from the sources and
don't understand how it works.
"You" create a store for all your mails (what I'm looking for), just by
specifying a Path.
Then, in each Channel, "you" specify ":local:work" or ":local:personal".
How does mbsync handle this and what is created in your ~/Mail/ folder?
A subfolder for each account?

When I tested it (with Path ~/Mails/ and Slave :f-u-local:Account1),
mbsync created .INBOX.Amazon (and the others) inside ~/Mails/, not
~/Mails/Account1/.

Can you explain me the magic behind this?

Regards,
-- 
CycyX

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to