[Dovecot] Add S=<size> to maildirfile

Timo Sirainen tss at iki.fi
Fri Oct 19 19:17:04 EEST 2012


On 19.10.2012, at 19.12, Alessio Cecchi wrote:

>>>> in some old Maildir/ I have file without the S=<size> in file name.
>>>> 
>>>> Is possibile to add the size to the file name with some tools like doveadm?

Not directly.

>>>> Are there other methods to update these file?

A script that renames the files and updates dovecot-uidlist. No such script exists as far as I know.

You could also switch from Maildir++ quota to dict-file quota and this wouldn't be a problem.

> Dsync could be a good idea but I need to "sync" maildir to the same maildir and I don't think can be done this.

You could sync to another maildir, rm -rf the original, sync back to original.

> My situation is a Maildir/cur/ with old email files without S=size and, in the same Maildir/cur/, some files with S=size.
> 
> Can doveadm do this?

No.




More information about the dovecot mailing list