Hi,
I'm trying to see if mbsync will work for me. So far it seems better
than the alternatives, but I'm still having some problems.
Some is from things in the documentation that I don't quite understand.
FYI I've got lots and lots of Unix sysadmin experience, but I'm not
that well versed on the IMAP protocol.
First, on documentation:
MapInbox "Create a virtual mailbox (relative to PAth)...
which is backed by the INBOX"
* I have no idea what "backed by the INBOX" means
* It's not cleare to me what the interaction is between "Path," "Inbox,"
and "MapInbox" directives.
* "Sync Full" the "Full" option is described in the manpage as "All,"
but the syntax example shows "Sync ... Full"
* It seems that at least in some cases a sync of the INBOX is done
in addition to whatever's specified in the Channel section. If I want
to sync mailboxes but not have an implicit sync of the INBOX, I have to
put "!INBOX" in the pattern. It would be nice if the documentation were
a little more clear about that.
-----
Here's what I'm trying to do. In short I'm trying to sync my saved mail
without syncing my INBOX (I want to do that as a separate action).
I have mail on an IMAP server, "foobar.example.com"
On the server (remote), I have saved in stored in the directory "~/Test"
(really,
I'm using a test directory so that i don't accidentally nuke all my mail).
On the client (local), I want to store the maildirs in ~/Mail/test/Archive
(the INBOX will go in ~/Mail/test/Inbox)
There's an mbox file on the server called "[email protected]"
I've got an .mbsyncrc file (shown further below). Here's what's
happening: On first sync, a local maildir called [email protected]
gets created where it's supposed to, and the messages get synced.
After that, Syncing mail from the server to my client (laptop) seems
to work: Deleting and adding messages on the server mbox gets
propagated to the client.
If I add/remove messages from the local Maildir folder [email protected]
and then sync, the changes get propagated to the server. So far so good.
Here's where the problem is. *after* the changes get propagated, I get
the following errors:
reading sync state
/Users/abe/.mbsync/:test-archive:Mail!test!Archive!_:local-archive:INBOX ...
selecting slave [1,inf]
selecting master [1,inf]
>>> 9 SELECT "Test/Mail/test/Archive/"
9 NO SELECT failed: Can't open Test/Mail/test/Archive/: not a
selectable mailbox
>>> 10 CREATE "Test/Mail/test/Archive/"
(1 in progress) >>> 11 SELECT "Test/Mail/test/Archive/"
10 NO CREATE failed: Can't create mailbox node
/home/asinger/Test/Mail/test/Archive/: File exists
IMAP command 'CREATE "Test/Mail/test/Archive/"' returned an error: NO
CREATE failed: Can't create mailbox node /home/asinger/Test/Mail/test/Archive/:
File exists
11 NO SELECT failed: Can't open Test/Mail/test/Archive/: not a
selectable mailbox
IMAP command 'SELECT "Test/Mail/test/Archive/"' returned an error: NO
SELECT failed: Can't open Test/Mail/test/Archive/: not a selectable mailbox
>>> 12 LOGOUT
* BYE gacrux IMAP4rev1 server terminating connection
12 OK LOGOUT completed
And I find on the server "~/Test/Mail/test/Archive" has been created
I have no idea what's causing this behavior. It shouldn't be trying
to create that directory (it also shouldn't treat the "directory exists"
error as a failure, but that's a different problem). It's seems to be
getting confused and thinking that the directory structure on the client
needs to get replicated on the server (which isn't what's wanted).
Am I doing something wrong here?
Here's my .mbsyncrc:
#
# Imap Account settings
#
IMAPAccount "test-me"
Host "foobar.example.com"
User "me"
UseIMAPS yes
RequireSSL yes
CertificateFile "/Users/me/etc/Certificates.pem"
#
# Local Maildir settings
#
MaildirStore local-archive
MapInBox "Mail/test/Archive/"
Path "Mail/test/Archive/"
AltMap yes
#
# IMAP Server settings
#
IMAPStore test-archive
Account test-asinger
Path "Test/"
#
# Channel Bindings
#
Channel "test-archive-to-local"
Master :test-archive:
Slave :local-archive:
Patterns * !INBOX
Sync Full
Create Both
Expunge Both
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel