zlib plugin doesn't add "Z" flag to Maildir filename

Alessio Cecchi alessio at skye.it
Thu Mar 10 14:00:05 UTC 2016


Il 10/03/2016 10:38, Tom Sommer ha scritto:
> I enabled zlib compression, so new mails are saved compressed.
>
> Now I want to convert the old mails to gzip with the find and gzip
> command, but now I don't know which files are already gzip compressed by
> dovecot.

Simple check if the file is already compress (es. if gzip -t 
"${MAILFILE}" 2> /dev/null".

> Shouldn't zlib_save itself add Z to the Maildir flags? As suggested in
> the compress guide on http://wiki2.dovecot.org/Plugins/Zlib ?
>

No, zlib plugins only compress email without chaning the name.

I suggest to do not use script that rename email files because they can 
invalid the uidlist.
-- 
Alessio Cecchi
Postmaster @ http://www.qboxmail.it
https://www.linkedin.com/in/alessice


More information about the dovecot mailing list