On 03/30/2010 12:01 AM Renaud Allard wrote:
Hello,
As per wiki instructions, I tried to enable zlib compression of mails by adding/modifying the following snippets of configuration: plugin { zlib_save_level = 6 Default value ^^^^ zlib_save = gz }
and
protocol imap { mail_plugins = fts fts_squat autocreate zlib imap_zlib imap_id_log = * }
I am using dbox format and delivering the mails via dovecot deliver, however mails don't seem compressed at all. It is not very clear if compression is available for something else than maildir and mbox, so is compression available with dbox format?
I am using dovecot-2-0-aefa279e2c70 from hg.
Yes, the zlib plugin works also with dbox storage. I've delivered five mails, zlib plugin enabled, to user jane and the same 5 mails w/o zlib plugin to user james. # du -hs /tmp/ja* 92K /tmp/james 68K /tmp/jane
# ls -l /tmp/ja*/dbox/mailboxes/INBOX/dbox-Mails/u.* | awk '{print $5" "$8}' 11028 /tmp/james/dbox/mailboxes/INBOX/dbox-Mails/u.1 8326 /tmp/james/dbox/mailboxes/INBOX/dbox-Mails/u.2 4404 /tmp/james/dbox/mailboxes/INBOX/dbox-Mails/u.3 4744 /tmp/james/dbox/mailboxes/INBOX/dbox-Mails/u.4 4430 /tmp/james/dbox/mailboxes/INBOX/dbox-Mails/u.5 6465 /tmp/jane/dbox/mailboxes/INBOX/dbox-Mails/u.1 3813 /tmp/jane/dbox/mailboxes/INBOX/dbox-Mails/u.2 1964 /tmp/jane/dbox/mailboxes/INBOX/dbox-Mails/u.3 2137 /tmp/jane/dbox/mailboxes/INBOX/dbox-Mails/u.4 2035 /tmp/jane/dbox/mailboxes/INBOX/dbox-Mails/u.5
dovecot --version -> 2.0.beta4 (dbb05e38295a) protocol lda { mail_plugins = sieve zlib }
Regards, Pascal
The trapper recommends today: cafefeed.1008901@localdomain.org