[Dovecot] Bad exit status from dsync

Timo Sirainen tss at iki.fi
Wed Jun 5 18:28:17 EEST 2013


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




More information about the dovecot mailing list