Hi.
The imapsync documentation is pretty good.
You're missing an option it seems.
Here's the line that worked the way
I needed it to. I believe you're just missing the
--skipsizes option.
Please be aware that the below line
will not work as-is for you. You'd have to understand and change everything, including realising that all the mail will keep the folder-structure of your source, but that it will all be created in a subfolder from the root.
Code:
imapsync --regextrans2 's/(.*)/importedmail\/$1/' --nosyncacls --syncinternaldates --authmech1 PLAIN --ssl1 --authmech2 PLAIN --ssl2 --host1 source.domain.tld --user1 myusername --password1 "long long password" --host2 destination.zimbraenabled.otherdomain.tld --user2 myusername --password2 shortpassword --skipsize --nofoldersizes 2>1 | tee imapsync.log
The above example also assumes your folders are set up to be separated by the UNIX separator ('/') on the destination machine and not dots. Zimbra's (the machine you're likely transferring to -- the destination's) default appears to be
/. imapsync
should take care of recognizing dotted or "slashed" folder separators on the source without you needing to do anything.