[Dovecot] Bad exit status from dsync
I just tried to migrate one of my users from maildir to mdbox using dsync. My conversion script is checking the dsync exit code to know if the conversion goes fine or not, and surprisingly dsync returned "0" at the same time as it gave the error:
Error: Failed to sync mailbox .ta\ vare\ på ...
(sorry, lost the rest of the error message)
Changing the folder name to mUTF7 manually made it work, but I didn't like that dsync returned success when it got this error. That breaks the failsafe logic in my conversion script.
Dovecot version dovecot-ee-2.1.16.3-1, x86_64, RHEL5. Dsync command used:
dsync -v -u username@example.net mirror maildir:/usr/local/atmail/users/u/s/username@example.net
With these dovecot.conf settings:
mail_home = /srv/mailstore/%256LRHu/%Ld/%Ln
mail_location = mdbox:~/mdbox
-jf
On Mon, 2013-06-03 at 10:11 +0200, Jan-Frode Myklebust wrote:
I just tried to migrate one of my users from maildir to mdbox using dsync. My conversion script is checking the dsync exit code to know if the conversion goes fine or not, and surprisingly dsync returned "0" at the same time as it gave the error:
Error: Failed to sync mailbox .ta\ vare\ på ... (sorry, lost the rest of the error message)
Changing the folder name to mUTF7 manually made it work, but I didn't like that dsync returned success when it got this error. That breaks the failsafe logic in my conversion script.
It was a bit tricky to fix this. I added a kludge to v2.1 and a better fix to v2.2:
http://hg.dovecot.org/dovecot-2.1/rev/a88aca17a92c http://hg.dovecot.org/dovecot-2.2/rev/12a0c383703e
participants (2)
-
Jan-Frode Myklebust
-
Timo Sirainen