On Tue, Mar 08, 2016 at 09:59:48PM +0000, Darac Marjal wrote: > Dovecot has two (relevant) plugins. zlib compresses the stored emails. > This is transparent to all clients - exim provides uncompressed emails, > dovecot compresses them to disk and on-the-fly decompresses them when > serving them back to mail clients. > > There is also imap_zlib which works like the HTTP gzip extension. IMAP > communications are compressed, allowing fewer bytes to be sent between > the server and the clients.
Very cool. I wonder (not having looked) whether this means you get a compressed file decompressed and then re-compressed if you enable both plugins, or if it's smart enough to stream the compressed files without decompressing them in that circumstance.