[Dovecot] copy and empty userA folder1, append to /var/mail/userB

mathog mathog at caltech.edu
Thu Sep 8 18:05:33 EEST 2011


On Thu, 08 Sep 2011 10:24:27 +0300, Timo Sirainen wrote:
> On Wed, 2011-09-07 at 16:39 -0700, mathog wrote:
>> Dovecot 2.0.13 on a 64 bit linux.
>>
>> echo "" > ~me/mail/export
>>
>> That worked fine on our last system, but dovecot doesn't like it.  
>> It
>> leaves the imap indices for the
>> export mailbox in an inconsistent state, so that roundcube (through
>> dovecot) refuses to drop
>> messages into it.  The error message roundcube emits is:
>>
>> ServerError:  Mailbox isn't a valid mbox file.
>
> You change the "export" mbox to be one byte size containing LF. It
> should instead be completely zero size

that was it.  Changed the script that does the move to use

cat >~me/mail/export <<EOD
EOD

and then the mailbox is usable.

Thanks!

David Mathog
mathog at caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech



More information about the dovecot mailing list