I am using mbsync on linux, openSUSE 12.3.  I use it for downloading
mail from several different IMAP servers, with several folders on
each server.

It seemed to work fine until last night.  When I checked my email this
morning, only one folder from one server was updating.  When I checked
my log files, mbsync was reporting:

Error: incomplete sync state header in /path/to/mail1/Inbox/.mbsyncstate
Error: incomplete sync state header in /path/to/mail1/Folder2/.mbsyncstate
Error: incomplete sync state header in /path/to/mail1/Folder3/.mbsyncstate
Error: incomplete sync state header in /path/to/mail2/Inbox/.mbsyncstate
Error: incomplete sync state header in /path/to/mail2/Folder2/.mbsyncstate
...etc...
for all my imap accounts/folders except the one that still worked.


Looking at the .mbsyncstate files showed they were all filled with Nulls.


Is there any way to recover the .mbsyncstate files, short of
downloading everything from all the IMAP servers again?


------------------------------------------------
More details:

I originally used mbsync version 1.0.6, which mostly worked for a
month or two.  I have been using the git version of mbsync for a
couple weeks (since June 13).  My mbsyncrc files have not been 
changed recently.

I use a cron job to run mbsync every 5 minutes against each of my
email servers/accounts. 

I don't see any difference between the mbsyncrc files for the single
folder that still works and all the accounts/folders that have been
corrupted (other than the required path+account+folder differences).
In any case, all of them worked fine until last night.

I store the .mbsyncstate files in each of the slave mailbox
directories.  (mbsync's -c option)

I tried removing the .mbsyncstate file for a single email
account+folder and rerunning mbsync against that server.  That
"worked" as expected: mbsync downloaded new copies of all of the
folder's email without complaint and I ended up with duplicate copies
of all the email in that folder.

-------------------------------------------------------

The way I run mbsync is:
/path/to/git-isync/src/mbsync -a -q -c ~/path/to/Acct1/mbsyncrc
/path/to/git-isync/src/mbsync -a -q -c ~/path/to/Acct2/mbsyncrc
/path/to/git-isync/src/mbsync -a -q -c ~/path/to/Acct3/mbsyncrc
...etc...


My mbsyncrc files all look like:
-------------------------------------------------------
IMAPAccount Acct1
Host imap.host1.com
...
UseIMAPS yes
CertificateFile  ...
CertificateFile  ...
CertificateFile  ...

IMAPStore Acct1-imap
Account Acct1

MaildirStore Acct1-local
Path ~/path/to/Acct1/mail/
Inbox ~/path/to/Acct1/mail/Inbox


Channel Acct1-Inbox
Master :Acct1-imap:Inbox
Slave :Acct1-local:Inbox
Create Slave
Sync Pull New ReNew Flags
SyncState *

... etc for other Acct1 folders ...
-------------------------------------------------------

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to