Re: [Dovecot] Compressing Maildir mails on delivery

2010-02-06 Thread Timo Sirainen
On Sat, 2010-02-06 at 19:33 +0100, Amon Ott wrote:
> On Saturday 06 February 2010 wrote Timo Sirainen:
> > Now supported by v2.0. Also as a patch to v1.2:
> > http://dovecot.org/patches/1.2/zlib-compress.diff
> >
> > I'm not really sure if I should commit it to v1.2 code tree. The code
> > contains ugly copy&pasted io_stream_copy() and v1.2 is supposed to be
> > feature complete..
> 
> In would sure like to see that feature in stable 1.2. It is optional and in a 
> plugin, so quite unlikely to harm. And you could even require a configure 
> flag for it.

But it also modifies existing zlib plugin code.

> If I could enable it per user,

You can. You can override almost any setting by returning it from
userdb.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Compressing Maildir mails on delivery

2010-02-06 Thread Amon Ott
On Saturday 06 February 2010 wrote Timo Sirainen:
> Now supported by v2.0. Also as a patch to v1.2:
> http://dovecot.org/patches/1.2/zlib-compress.diff
>
> I'm not really sure if I should commit it to v1.2 code tree. The code
> contains ugly copy&pasted io_stream_copy() and v1.2 is supposed to be
> feature complete..

In would sure like to see that feature in stable 1.2. It is optional and in a 
plugin, so quite unlikely to harm. And you could even require a configure 
flag for it.

If I could enable it per user, it would be perfect, but current is already 
nice to have. We have some customers who like to keep their mail data 
forever, and compressing on the fly would be much nicer than a nightly cron 
job. :)

Amon Ott
-- 
** Besuchen Sie uns auf der CeBIT: Halle 11 am Stand C11-C13 ! **

Dr. Amon Ott - m-privacy GmbH
Am Köllnischen Park 1, 10179 Berlin
Tel: +49 30 24342334
Fax: +49 30 24342336
Web: http://www.m-privacy.de
Handelsregister:
 Amtsgericht Charlottenburg HRB 84946
Geschäftsführer:
 Dipl.-Kfm. Holger Maczkowsky,
 Roman Maczkowsky
GnuPG-Key-ID: EA898571


Re: [Dovecot] Compressing Maildir mails on delivery

2010-02-06 Thread Timo Sirainen
On 6.2.2010, at 12.07, Leonardo Rodrigues wrote:

> 
>OK, patching is fine ... but how am i supposed to enable that ? is there 
> some new config option, or applying the patch will automatically and 
> irreversible enabling it ?
> 
>How to choose between gzip and bzip2 compression ?
> 
>is there anything special to configure on LDA protocol to get that working 
> ?

See bottom of http://wiki.dovecot.org/Plugins/Zlib



Re: [Dovecot] Compressing Maildir mails on delivery

2010-02-06 Thread Leonardo Rodrigues


Hi Timo,

OK, patching is fine ... but how am i supposed to enable that ? is 
there some new config option, or applying the patch will automatically 
and irreversible enabling it ?


How to choose between gzip and bzip2 compression ?

is there anything special to configure on LDA protocol to get that 
working ?


Em 05/02/2010 21:32, Timo Sirainen escreveu:

Now supported by v2.0. Also as a patch to v1.2:
http://dovecot.org/patches/1.2/zlib-compress.diff

I'm not really sure if I should commit it to v1.2 code tree. The code
contains ugly copy&pasted io_stream_copy() and v1.2 is supposed to be
feature complete..
   



--


Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br

Minha armadilha de SPAM, NÃO mandem email
gertru...@solutti.com.br
My SPAMTRAP, do not email it






Re: [Dovecot] Compressing Maildir mails on delivery

2010-02-05 Thread Timo Sirainen
On Sat, 2010-02-06 at 01:32 +0200, Timo Sirainen wrote:
> Now supported by v2.0. Also as a patch to v1.2:
> http://dovecot.org/patches/1.2/zlib-compress.diff
> 
> I'm not really sure if I should commit it to v1.2 code tree. The code
> contains ugly copy&pasted io_stream_copy() and v1.2 is supposed to be
> feature complete..

Oh, and the patch requires latest v1.2 hg version with
http://hg.dovecot.org/dovecot-1.2/rev/c24a31b423ed (and
http://hg.dovecot.org/dovecot-1.2/rev/0454fde95cbf).



signature.asc
Description: This is a digitally signed message part