[Dovecot] xz compression support

2010-09-22 Thread Attila Nagy

 Hello,

Just wondering: Dovecot has gzip/bzip2 compression/decompression support.
According to this: 
http://stephane.lesimple.fr/wiki/blog/lzop_vs_compress_vs_gzip_vs_bzip2_vs_lzma_vs_lzma2-xz_benchmark_reloaded 
gzip and bzip2 aren't really useful together.
While gzip can offer speed and a reasonable amount of compression ratio, 
bzip2 is slow, especially on decompression, which Dovecot does more 
frequently than compression (1 vs many).


So: is it planned to include xz (liblzma) support? It would be useful 
especially for compressing old mails in the background (due to the 
resource intensity of the compression phase).


Thanks,


Re: [Dovecot] xz compression support

2010-09-22 Thread Timo Sirainen
On 22.9.2010, at 22.38, Attila Nagy wrote:

 So: is it planned to include xz (liblzma) support? It would be useful 
 especially for compressing old mails in the background (due to the resource 
 intensity of the compression phase).

If xz has similar library API than bzip2 or zlib, it should be easy to add. 
It's not really in my plans though..