Fixed "file size unexpectedly shrinked" error in some conditions.
Fixed "file size unexpectedly shrinked" error in some conditions.

damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot