Re: [Dovecot] zlib maildir reindex broken

2014-07-03 Thread Christian Rohmann
Hey Timo, On 02.05.2014 12:37, Timo Sirainen wrote: During a reindex maildir_mail_get_received_date() does an i_stream_stat on the the i_stream_seekable stream created in zlib_mail_cache_open, but this istream does not know about the original maildir message file and always returns the

Re: [Dovecot] zlib maildir reindex broken

2014-07-03 Thread Robert Schetterer
Am 03.07.2014 16:55, schrieb Christian Rohmann: Hey Timo, On 02.05.2014 12:37, Timo Sirainen wrote: During a reindex maildir_mail_get_received_date() does an i_stream_stat on the the i_stream_seekable stream created in zlib_mail_cache_open, but this istream does not know about the

Re: [Dovecot] zlib maildir reindex broken

2014-05-02 Thread Timo Sirainen
On 24.4.2014, at 0.51, Richard Platel rpla...@tucows.com wrote: I posted to the list about this a while ago but never got a response, I have a bit more information now. Dovecot 2.2.12 and other 2.2 versions are broken when using zlib and maildir. If messages are re-indexed, the

[Dovecot] zlib maildir reindex broken

2014-04-23 Thread Richard Platel
I posted to the list about this a while ago but never got a response, I have a bit more information now. Dovecot 2.2.12 and other 2.2 versions are broken when using zlib and maildir. If messages are re-indexed, the INTERNALDATE of all messages is set to the time the re-index is done. The

[Dovecot] zlib unexpected EOF

2014-02-04 Thread Anand Kumria
Hi, I am seeing occasional log entries like: Feb 4 06:20:01 mail1 dovecot: imap(u...@example.com): Error: read(imap client) failed: zlib.read(imap client): unexpected EOF at 894774 Feb 4 06:20:01 mail1 dovecot: imap(u...@example.com): Disconnected in APPEND (1 msgs, 201 secs, 0/5180550 bytes)

Re: [Dovecot] zlib unexpected EOF

2014-02-04 Thread Robert Schetterer
Am 04.02.2014 10:16, schrieb Anand Kumria: Hi, I am seeing occasional log entries like: Feb 4 06:20:01 mail1 dovecot: imap(u...@example.com): Error: read(imap client) failed: zlib.read(imap client): unexpected EOF at 894774 Feb 4 06:20:01 mail1 dovecot: imap(u...@example.com):

[Dovecot] zlib plugin question

2013-12-19 Thread Przemysław Orzechowski
Hi Is it possible to compress incoming mails delivered via dovecots LDA when using dovecot --version 1.2.9 or do i have to compress them via cron?

Re: [Dovecot] zlib plugin question

2013-12-19 Thread Frerich Raabe
On 2013-12-19 16:07, Przemysław Orzechowski wrote: Is it possible to compress incoming mails delivered via dovecots LDA when using dovecot --version 1.2.9 or do i have to compress them via cron? There is a zlib plugin for Dovecot 1.x you could use. See http://wiki1.dovecot.org/Plugins/Zlib

Re: [Dovecot] zlib plugin question

2013-12-19 Thread Frerich Raabe
On 2013-12-19 17:51, Frerich Raabe wrote: On 2013-12-19 16:07, Przemysław Orzechowski wrote: Is it possible to compress incoming mails delivered via dovecots LDA when using dovecot --version 1.2.9 or do i have to compress them via cron? There is a zlib plugin for Dovecot 1.x you could use.

Re: [Dovecot] zlib config questions

2013-12-08 Thread Timo Sirainen
On 6.12.2013, at 21.28, Sven Hartge s...@svenhartge.de wrote: And, please anybody correct me if I am wrong, if you use imap_zlib then the IMAP connection is compressed as well which may allow Dovecot to skip the decompressing state completely and just deliver the compressed stream directly.

Re: [Dovecot] zlib config questions

2013-12-06 Thread Richard Platel
: Thu, 5 Dec 2013 13:55:40 -0800 From: Terry Barnum te...@dop.com To: Dovecot Mailing List dovecot@dovecot.org Subject: [Dovecot] zlib config questions Message-ID: ef7f46d0-de03-4b11-85ed-d669de78d...@dop.com Content-Type: text/plain; charset=us-ascii After nearly running out of space I

Re: [Dovecot] zlib config questions

2013-12-06 Thread Charles Marcus
On 2013-12-06 10:55 AM, Richard Platel rpla...@tucows.com wrote: One gotcha if you're using maildir is, if you're planning to compress old mail, make sure that the S= and W= sizes in the filenames are correct, And how do you make sure of this? Is there a script? Or do you just pray? -- Best

Re: [Dovecot] zlib config questions

2013-12-06 Thread Robert Schetterer
Am 06.12.2013 17:01, schrieb Charles Marcus: On 2013-12-06 10:55 AM, Richard Platel rpla...@tucows.com wrote: One gotcha if you're using maildir is, if you're planning to compress old mail, make sure that the S= and W= sizes in the filenames are correct, And how do you make sure of this? Is

Re: [Dovecot] zlib config questions

2013-12-06 Thread Terry Barnum
On Dec 6, 2013, at 8:23 AM, Robert Schetterer r...@sys4.de wrote: Am 06.12.2013 17:01, schrieb Charles Marcus: On 2013-12-06 10:55 AM, Richard Platel rpla...@tucows.com wrote: One gotcha if you're using maildir is, if you're planning to compress old mail, make sure that the S= and W= sizes

Re: [Dovecot] zlib config questions

2013-12-06 Thread Robert Schetterer
Am 06.12.2013 20:01, schrieb Terry Barnum: Once you enable zlib, does this mean you must use it from that point on? Once email is compressed, if you disable the plugin does dovecot lose the ability to access those compressed emails? you may disable the plugin anytime, but you then have to

Re: [Dovecot] zlib config questions

2013-12-06 Thread Robert Schetterer
Am 06.12.2013 20:18, schrieb Robert Schetterer: Am 06.12.2013 20:01, schrieb Terry Barnum: Once you enable zlib, does this mean you must use it from that point on? Once email is compressed, if you disable the plugin does dovecot lose the ability to access those compressed emails? you may

Re: [Dovecot] zlib config questions

2013-12-06 Thread Sven Hartge
Terry Barnum te...@dop.com wrote: I'm curious how many people here use the zlib plugin. Is it common or is drive space cheap enough that it's not worth it to run the risk of potential problems? HDD space may be cheap, but is also slow, therefor IOPS are very expensive. I compress the mail

[Dovecot] zlib config questions

2013-12-05 Thread Terry Barnum
After nearly running out of space I swapped in larger disks and then saw the recent threads about zlib compression. Unfortunately I'm still confused after reading http://wiki2.dovecot.org/Plugins/Zlib. In order to compress new email being stored do I only need to change 10-mail.conf to this:

[Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread Frerich Raabe
Hi, I run a small IMAP server for a dozen guys in the office, serving about 55GB of Maildir. I recently became aware of the Zlib plugin ( http://wiki2.dovecot.org/Plugins/Zlib ) and wondered 1. given that there is about zero CPU load on my IMAP server, is enabling the plugin a no-brainer or

Re: [Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread Everton Foscarini
I have a relatively big installation here in the university, 1 mail server for 10.000 daily active accounts. I converted from maildir to mdbox + zlib in march, and these are my considerations: 1. CPU is not a problem, even delivering more than 400 messages per minute (blade HS21 with 2xQuad

Re: [Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread René Neumann
Am 25.11.2013 14:12, schrieb Everton Foscarini: I have a relatively big installation here in the university, 1 mail server for 10.000 daily active accounts. I converted from maildir to mdbox + zlib in march, and these are my considerations: 1. CPU is not a problem, even delivering more

Re: [Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread Jan-Frode Myklebust
On Mon, Nov 25, 2013 at 09:53:14AM +0100, Frerich Raabe wrote: I run a small IMAP server for a dozen guys in the office, serving about 55GB of Maildir. I recently became aware of the Zlib plugin ( http://wiki2.dovecot.org/Plugins/Zlib ) and wondered 1. given that there is about zero CPU

Re: [Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread Frerich Raabe
On 2013-11-25 14:35, Jan-Frode Myklebust wrote: On Mon, Nov 25, 2013 at 09:53:14AM +0100, Frerich Raabe wrote: I run a small IMAP server for a dozen guys in the office, serving about 55GB of Maildir. I recently became aware of the Zlib plugin ( http://wiki2.dovecot.org/Plugins/Zlib ) and

Re: [Dovecot] Zlib plugin - when does it make sense?

2013-11-25 Thread Jan-Frode Myklebust
On Mon, Nov 25, 2013 at 02:47:33PM +0100, Frerich Raabe wrote: Interesting! What zlib compression level did you use? I figure even low levels would work rather well for plain text. plugin { zlib_save_level = 6 # 1..9 zlib_save = gz # or bz2 }

[Dovecot] zlib plugin issues

2013-08-26 Thread Vijay Rajah
Hello, I'm running dovecot 2.2.5 in Centos 6.4 on EXT4 fs. I have activated zlib plugin. The incoming mails is compressed. However, when i try to retrieve the mail using imap I'm getting this error Aug 25 22:17:31 vrajah-vps5 dovecot: imap(me@mydomain.tld): Error: Cached message size smaller

Re: [Dovecot] zlib plugin issues

2013-08-26 Thread Vijay Rajah
Just realized the imap plugin must be imap_zlib... It works now. Thanks Vijay On Mon, Aug 26, 2013 at 10:45 PM, Vijay Rajah vijayra...@gmail.com wrote: Hello, I'm running dovecot 2.2.5 in Centos 6.4 on EXT4 fs. I have activated zlib plugin. The incoming mails is compressed. However,

Re: [Dovecot] zlib error when running doveadm

2013-07-29 Thread Timo Sirainen
On 22.7.2013, at 18.01, Michael Long ml...@mlong.us wrote: Upgraded to dovecot 2.2.4 from 2.1.16 Error I see is: doveadm(root): Error: Module is for different ABI version 2.1.16 (we have 2.2.ABIv3(2.2.4)): /usr/local/lib/dovecot/doveadm/lib10_doveadm_zlib_plugin.so How do I resolve

[Dovecot] zlib error when running doveadm

2013-07-22 Thread Michael Long
Upgraded to dovecot 2.2.4 from 2.1.16 Error I see is: doveadm(root): Error: Module is for different ABI version 2.1.16 (we have 2.2.ABIv3(2.2.4)): /usr/local/lib/dovecot/doveadm/lib10_doveadm_zlib_plugin.so How do I resolve this? Configure options: ./configure --with-bzlib --with-ssl

Re: [Dovecot] zlib error when running doveadm

2013-07-22 Thread Charles Marcus
On 2013-07-22 11:01 AM, Michael Long ml...@mlong.us wrote: Configuration: # 2.2.4: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 3.2.0-48-generic x86_64 Ubuntu 12.04.2 LTS doveconf: Warning: Dovecot was last started using /etc/dovecot/dovecot-postfix.conf, but this config is

Re: [Dovecot] zlib error when running doveadm

2013-07-22 Thread Robert Schetterer
Am 22.07.2013 17:01, schrieb Michael Long: doveadm(root): Error: Module is for different ABI version 2.1.16 (we have 2.2.ABIv3(2.2.4)): /usr/local/lib/dovecot/doveadm/lib10_doveadm_zlib_plugin.so normally this simple says there is somthing from old dovecot version ( process ) still running,

[Dovecot] zlib error when running doveadm

2013-07-22 Thread Michael Long
Looks like you have two versions installed and are mixing them up. I checked and only one binary is on the system. I took a look in the directory /usr/local/lib/dovecot/doveadm/ and it appears the upgrade rebuilt all libraries EXCEPT zlib. Any ideas? -rw-r--r-- 1 root root 125910 Jul 22

[Dovecot] zlib error when running doveadm

2013-07-22 Thread Michael Long
I manually fixed it by copying src/plugins/zlib/lib20_zlib_plugin.la to /usr/local/lib/dovecot/doveadm I do not understand why 'make install' won't do that? A bug perhaps?

[Dovecot] zlib plugin undefined symbol: imap_module_register

2013-07-19 Thread Alexander Weber
Hi all, i've tried to enable the zlib plugin within die LDA, but i've got some strange errors dovecot: lda: Error: dlopen(/usr/lib/dovecot/modules/lib30_imap_zlib_plugin.so) failed: /usr/lib/dovecot/modules/lib30_imap_zlib_plugin.so: undefined symbol: imap_module_register dovecot: lda:

Re: [Dovecot] zlib plugin undefined symbol: imap_module_register

2013-07-19 Thread Axel Luttgens
Le 19 juil. 2013 à 15:43, Alexander Weber a écrit : Hi all, i've tried to enable the zlib plugin within die LDA, but i've got some strange errors dovecot: lda: Error: dlopen(/usr/lib/dovecot/modules/lib30_imap_zlib_plugin.so) failed:

[Dovecot] Zlib plugin: changing compression save level

2013-06-11 Thread Urban Loesch
Hi, I have running dovecot 2.1.15 with zlib plugin enabled and zlib_save_level = 6 since about 2 years now without any problems. What happens if I now change the zlib_save_level to 9? Should that work without any problems, or become the current saved *.m files incompatible or unreadable?

Re: [Dovecot] Zlib plugin: Compress emails for one folder only

2013-03-21 Thread André Rodier
Thanks Timo, I will see. If I have some time, I may have a look at the source code. Kind regards, André. On 20 March 2013 17:58, Timo Sirainen t...@iki.fi wrote: On 16.3.2013, at 14.43, Andre Rodier andre.rod...@gmail.com wrote: Hello everyone, Is it possible to configure the zlib plugin

Re: [Dovecot] Zlib plugin: Compress emails for one folder only

2013-03-20 Thread Timo Sirainen
On 16.3.2013, at 14.43, Andre Rodier andre.rod...@gmail.com wrote: Hello everyone, Is it possible to configure the zlib plugin to compress the emails in one folder only? I would like to compress the emails when they are stored in my 'Archives' folders and sub folders. Nope. With

[Dovecot] Zlib plugin: Compress emails for one folder only

2013-03-16 Thread Andre Rodier
Hello everyone, Is it possible to configure the zlib plugin to compress the emails in one folder only? I would like to compress the emails when they are stored in my 'Archives' folders and sub folders. Thanks, André Rodier.

Re: [Dovecot] zlib plugin bug?

2013-03-11 Thread Angel L. Mateo
El 08/03/13 14:13, Jan Phillip Greimann escribió: Hi there, got a problem with the zlib plugin, just wanted to test it on a test-mailserver, configured like in the wiki (http://wiki2.dovecot.org/Plugins/Zlib) and restarted the server. I've send an email to a blank maildir++ mailbox, the file is

Re: [Dovecot] zlib plugin bug?

2013-03-11 Thread Jan Phillip Greimann
Am 11.03.2013 08:05, schrieb Angel L. Mateo: zlib plugin doesn't put any flag in messages. The Z flag mentioned in the wiki is one you could put if your are compressing an existing mailbox in order to know which files you have previously compressed. Thank you. I noticed later that there is

[Dovecot] zlib plugin bug?

2013-03-08 Thread Jan Phillip Greimann
Hi there, got a problem with the zlib plugin, just wanted to test it on a test-mailserver, configured like in the wiki (http://wiki2.dovecot.org/Plugins/Zlib) and restarted the server. I've send an email to a blank maildir++ mailbox, the file is saved as gzip compressed file, but the Z flag

[Dovecot] Zlib maildir reindex bug?

2013-01-14 Thread Richard Platel
Hi Running dovecot 2.1.7 (from debian repo). We have some old compressed maildir messages with the wrong S= size in the filename (our fault). If I delete index files, log in to the mailbox and try to FETCH the bad message, dovecot complains about the incorrect message size, attempts to fix

Re: [Dovecot] Zlib maildir reindex bug?

2013-01-14 Thread Robert Schetterer
Am 14.01.2013 20:12, schrieb Richard Platel: Maildir filename has wrong S value may not related to index only , it sometimes comes up by upgrading from 2.0x to 2.1x versions look http://www.dovecot.org/list/dovecot/2012-March/064211.html some soltuions may try set

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected / with 2.1.9 patch ?

2012-08-03 Thread Timo Sirainen
On 2.8.2012, at 10.09, Robert Schetterer wrote: Hi Timo, most of the Problems are fixed now many thx for your script , but how to avoid that in future ( Maildir filename has wrong S value ) You'd need to find out why it started happening in the first place. What software wrote those

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected / with 2.1.9 patch ?

2012-08-03 Thread Robert Schetterer
Am 03.08.2012 15:56, schrieb Timo Sirainen: On 2.8.2012, at 10.09, Robert Schetterer wrote: Hi Timo, most of the Problems are fixed now many thx for your script , but how to avoid that in future ( Maildir filename has wrong S value ) You'd need to find out why it started happening in the

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected / with 2.1.9 patch ?

2012-08-02 Thread Robert Schetterer
Am 01.08.2012 14:58, schrieb Timo Sirainen: On 1.8.2012, at 15.43, Robert Schetterer wrote: If you don't mind the messages' IMAP UIDs changing, you could give the -f parameter to fix those. i will try things couldn not get more worst ./maildir-size-check.sh -f maildir is an unknown

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected

2012-08-01 Thread Robert Schetterer
Am 01.08.2012 07:36, schrieb Robert Schetterer: Am 31.07.2012 23:44, schrieb Timo Sirainen: On 1.8.2012, at 0.29, Robert Schetterer wrote: Cached message size smaller than expected and Maildir filename has wrong S value and Corrupted index cache file in dove 2.1.8 i can reproduce the

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected

2012-08-01 Thread Timo Sirainen
See what you get by running the maildir through: http://dovecot.org/tools/maildir-size-check.sh

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected

2012-08-01 Thread Robert Schetterer
Am 01.08.2012 14:06, schrieb Timo Sirainen: See what you get by running the maildir through: http://dovecot.org/tools/maildir-size-check.sh tons of i.e Freunde/cur/1321795242.M359794P29783.mail02,S=2647728:2,S: Wrong S=2647728 value, should be S=3838835 -- Best Regards MfG Robert

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected

2012-08-01 Thread Timo Sirainen
On 1.8.2012, at 15.12, Robert Schetterer wrote: Am 01.08.2012 14:06, schrieb Timo Sirainen: See what you get by running the maildir through: http://dovecot.org/tools/maildir-size-check.sh tons of i.e Freunde/cur/1321795242.M359794P29783.mail02,S=2647728:2,S: Wrong S=2647728 value,

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected

2012-08-01 Thread Robert Schetterer
Am 01.08.2012 14:17, schrieb Timo Sirainen: On 1.8.2012, at 15.12, Robert Schetterer wrote: Am 01.08.2012 14:06, schrieb Timo Sirainen: See what you get by running the maildir through: http://dovecot.org/tools/maildir-size-check.sh tons of i.e

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected

2012-08-01 Thread Robert Schetterer
Am 01.08.2012 14:25, schrieb Robert Schetterer: Am 01.08.2012 14:17, schrieb Timo Sirainen: On 1.8.2012, at 15.12, Robert Schetterer wrote: Am 01.08.2012 14:06, schrieb Timo Sirainen: See what you get by running the maildir through: http://dovecot.org/tools/maildir-size-check.sh tons of

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected

2012-08-01 Thread Robert Schetterer
Am 01.08.2012 14:58, schrieb Timo Sirainen: On 1.8.2012, at 15.43, Robert Schetterer wrote: If you don't mind the messages' IMAP UIDs changing, you could give the -f parameter to fix those. i will try things couldn not get more worst ./maildir-size-check.sh -f maildir is an unknown

[Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected

2012-07-31 Thread Robert Schetterer
Hi Timo, by having errors like Cached message size smaller than expected and Maildir filename has wrong S value and Corrupted index cache file in dove 2.1.8 i can reproduce the problem with tb 14 with 2 nat machines connected to the same server the problem relates with create new folder then

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected

2012-07-31 Thread Timo Sirainen
On 1.8.2012, at 0.29, Robert Schetterer wrote: Cached message size smaller than expected and Maildir filename has wrong S value and Corrupted index cache file in dove 2.1.8 i can reproduce the problem with tb 14 with 2 nat machines connected to the same server the problem relates

Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected

2012-07-31 Thread Robert Schetterer
Am 31.07.2012 23:44, schrieb Timo Sirainen: On 1.8.2012, at 0.29, Robert Schetterer wrote: Cached message size smaller than expected and Maildir filename has wrong S value and Corrupted index cache file in dove 2.1.8 i can reproduce the problem with tb 14 with 2 nat machines connected

Re: [Dovecot] zlib plugin doesn't read concatenated .gz mailbox

2011-08-23 Thread Timo Sirainen
On Fri, 2011-07-29 at 20:00 +0300, Dmitry Nezhevenko wrote: I've observed that dovecot doesn't displays all mails from compressed via gzip mailbox (mbox). At the same time mutt -f mailbox.gz displays it correctly with all messages. Fixed: http://hg.dovecot.org/dovecot-2.0/rev/35e4a547231c

[Dovecot] zlib plugin doesn't read concatenated .gz mailbox

2011-07-29 Thread Dmitry Nezhevenko
Hi, I've observed that dovecot doesn't displays all mails from compressed via gzip mailbox (mbox). At the same time mutt -f mailbox.gz displays it correctly with all messages. I'm using archivemail to archive old mails. Internally it creates new gzip archive with expired messages and then

Re: [Dovecot] zlib

2011-05-23 Thread Timo Sirainen
On Sun, 2011-05-22 at 14:05 -0700, Daniel L. Miller wrote: How can I enable zlib for reading compressed messages but not writing? That's the default. Writing is enabled only with zlib_save plugin setting.

[Dovecot] zlib

2011-05-22 Thread Daniel L. Miller
How can I enable zlib for reading compressed messages but not writing? -- Daniel

Re: [Dovecot] zlib

2011-05-22 Thread Patrick Domack
only enable the plugin for pop and imap, but not lda or lmtp modes. Quoting Daniel L. Miller dmil...@amfes.com: How can I enable zlib for reading compressed messages but not writing? -- Daniel

Re: [Dovecot] zlib + mdbox

2010-11-24 Thread interfaSys sàrl
I am. The only issue I'm seeing is Blackberry devices that can't idle after a while. It was the same with Maildir, so maybe it's a zlib issue or something else all together. Message: 2 Date: Tue, 23 Nov 2010 18:19:18 -0800 From: Daniel L. Miller dmil...@amfes.com Subject: [Dovecot] zlib

Re: [Dovecot] zlib + mdbox

2010-11-24 Thread Timo Sirainen
. It was the same with Maildir, so maybe it's a zlib issue or something else all together. Message: 2 Date: Tue, 23 Nov 2010 18:19:18 -0800 From: Daniel L. Miller dmil...@amfes.com Subject: [Dovecot] zlib + mdbox To: Dovecot Mailing List dovecot@dovecot.org Message-ID: 4cec7626.4010...@amfes.com

Re: [Dovecot] zlib + mdbox

2010-11-24 Thread interfaSys sàrl
dmil...@amfes.com Subject: [Dovecot] zlib + mdbox To: Dovecot Mailing List dovecot@dovecot.org Message-ID: 4cec7626.4010...@amfes.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Is anyone currently using zlib with mdbox? Any issues?

[Dovecot] zlib + mdbox

2010-11-23 Thread Daniel L. Miller
Is anyone currently using zlib with mdbox? Any issues? -- Daniel

[Dovecot] zlib plugin weirdness

2010-10-01 Thread Kyle Wheeler
Hello, I'm trying to get the zlib plugin working on my 2.0 server. I started with an mbox that Dovecot can read just fine. Then I gzipped it, and now Dovecot complains that it's corrupted: Error: Next message unexpectedly corrupted in mbox file

Re: [Dovecot] zlib plugin weirdness

2010-10-01 Thread Timo Sirainen
On Fri, 2010-10-01 at 10:21 -0500, Kyle Wheeler wrote: I'm trying to get the zlib plugin working on my 2.0 server. I started with an mbox that Dovecot can read just fine. Then I gzipped it, and now Dovecot complains that it's corrupted: Does this fix it?

Re: [Dovecot] zlib plugin weirdness

2010-10-01 Thread Kyle Wheeler
On Friday, October 1 at 05:06 PM, quoth Timo Sirainen: On Fri, 2010-10-01 at 10:21 -0500, Kyle Wheeler wrote: I'm trying to get the zlib plugin working on my 2.0 server. I started with an mbox that Dovecot can read just fine. Then I gzipped it, and now Dovecot complains that it's corrupted:

Re: [Dovecot] zlib plugin weirdness

2010-10-01 Thread Kyle Wheeler
On Friday, October 1 at 05:46 PM, quoth Timo Sirainen: On Fri, 2010-10-01 at 11:21 -0500, Kyle Wheeler wrote: On Friday, October 1 at 05:06 PM, quoth Timo Sirainen: On Fri, 2010-10-01 at 10:21 -0500, Kyle Wheeler wrote: I'm trying to get the zlib plugin working on my 2.0 server. I started

Re: [Dovecot] zlib plugin weirdness

2010-10-01 Thread Kyle Wheeler
On Friday, October 1 at 11:51 AM, quoth Kyle Wheeler: That does it for gz-compressed files; it works! However, for bz2-compressed files, I get: Error: Next message unexpectedly corrupted in mbox file /var/lib/vpopmail/domains/memoryhole.net/kyle/Maildir/Archive/Intellego.bz2 at 1907 Error:

Re: [Dovecot] zlib delivery in 2.0beta6

2010-06-14 Thread Timo Sirainen
On Sun, 2010-06-13 at 10:59 +, Bernhard Schmidt wrote: Jun 13 12:53:55 mail dovecot: imap(bernilrz): Error: FETCH [] for mailbox unsorted UID 33930 got too little data: 1018 vs 2850 Jun 13 12:53:55 mail dovecot: imap(bernilrz): Error: Maildir filename has wrong W value:

[Dovecot] zlib delivery in 2.0beta6

2010-06-13 Thread Bernhard Schmidt
Hi, I just wanted to test the zlib plugin in Dovecot 2.0 and have a problem. Delivery via LMTP works fine and the mail is saved compressed. -rw--- 1 vmail vmail 1012 13. Jun 12:51 1276426292.M93539P15363.mail.svr02.mucip.net,S=2799,W=2850:2, # file

Re: [Dovecot] Zlib plugin dovecot 2.0beta4

2010-05-26 Thread Alex Baule
Mostrar romanização The extra line added to the header is to maintain compatibility with SMTP(share library code), which already works well. Besides having other benefits that are due to the hash in the header. I tried accessing the same way that istream is done in the zlib (

[Dovecot] Zlib plugin dovecot 2.0beta4

2010-05-11 Thread Alex Baule
Hi Timo... I made the plugin like you say. The header part is saved by dovecot, with o_stream_send , and the body with my function. This implementation, works fine. But i need to get / change some values to create the link from header to body. When a email is saved, have the S an W flags,

Re: [Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-05-03 Thread Alex Baule
Hi Timo... I made the plugin like you say. The header part is saved by dovecot, with o_stream_send , and the body with my function. This implementation, works fine. But i need to get / change some values to create the link from header to body. When a email is saved, have the S an W flags,

[Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-30 Thread Alex Baule
Hello Everyone. There is possible to rename the email saved by a plugin, like zlib ? i explain i need to add 1 line in email header, because of that, i want to rewrite the filename to update the S and W flag. Tks !

[Dovecot] zlib plugin dovecot 2.0 - write email

2010-04-26 Thread Alex Baule
Hello Everyone. There is possible to rename the email writed by a plugin, like zlib ? i explain i need to add 1 line in email header, because of that, i want to rewrite the filename to update the S and W flag. Tks !

Re: [Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-22 Thread Alex Baule
Hi Timo I'm doing the plugin based on what you said. But I'll add a line in the message header, so the S and W (size of email) flags, on the file name has to be changed ... There is a way to do that in the plugin? 2010/4/20 Alex Baule alexwba...@gmail.com If I had the file descriptor,

[Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-20 Thread Alex Baule
Hello Everyone... In zlib save mail have it: struct ostream *output; There is a way to get the file descriptor from output used in ostream zlib plugin ? to get in istream is i_stream_get_fd, but don't have o_stream_get_fd..

Re: [Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-20 Thread Alex Baule
Because my plugin will separate the body of the message header. With the FD I have control over the message to separate it. Do you have any suggestions for this separation? I do not quite understand how the struct ostream works. Tks Timo. 2010/4/20 Timo Sirainen t...@iki.fi On Tue,

Re: [Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-20 Thread Timo Sirainen
You should write the message header to the ostream that you get, and message body to some other file that you create. Use the o_stream_send() function to write the message header to the ostream (which does basically the same as write(fd)). I don't see how getting the stream's fd would help with

Re: [Dovecot] zlib Plugin Dovecot 2.0 - ostream

2010-04-20 Thread Alex Baule
If I had the file descriptor, I will reuse my functions to do this, made in a separate library, that i use in the MTA. So no need to rewrite again the part of split the message. 2010/4/20 Timo Sirainen t...@iki.fi You should write the message header to the ostream that you get, and message

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-16 Thread Timo Sirainen
On Fri, 2010-04-09 at 11:42 -0300, Alex Baule wrote: I developed a plugin based on the zlib plugin, but want to port it to dovecot 2.0. There are some differences in the 2.0 plugin, which I did not quite understand how it works for me to readjust it in my plugin. I don't think you need to

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-16 Thread Alex Baule
Thanks Timo, I have another question about the plugin. Part of reading I already migrated, only that the piece of writing (the new part in the plugin) I need to understand some things about the operation in order to migrate and redo the same functions with the separation of body / header Can

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-16 Thread Timo Sirainen
On Fri, 2010-04-16 at 09:55 -0300, Alex Baule wrote: Part of reading I already migrated, only that the piece of writing (the new part in the plugin) I need to understand some things about the operation in order to migrate and redo the same functions with the separation of body / header So

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-16 Thread Timo Sirainen
On Fri, 2010-04-16 at 18:34 +0300, Timo Sirainen wrote: On Fri, 2010-04-16 at 09:55 -0300, Alex Baule wrote: Part of reading I already migrated, only that the piece of writing (the new part in the plugin) I need to understand some things about the operation in order to migrate and redo

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-16 Thread Alex Baule
Ok ! That's easy. In the sendv rewrite, have this: for (i = 0; i iov_count; i++) { if (o_stream_emexis_send_chunk(emexis_stream, iov[i].iov_base, iov[i].iov_len) 0) return -1; bytes += iov[i].iov_len; } This iov is every line from the

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-16 Thread Timo Sirainen
On 16.4.2010, at 19.15, Alex Baule wrote: This iov is every line from the new emaill to save ? Or this is a email block with X bytes ? In my function to write email, i split the email by \n, to save it splited, and if the iov is splited by \n, is good for me. You can't assume anything

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Alex Baule
I Dont want the configuration. I Want know how is implemented. Explain, the functions, the hooks to get write a email stuffs like this. 2010/4/8 Alex Baule alexwba...@gmail.com Hi Everyone Someone can explain to me the difference from zlib 1.2.X and 2.0 beta4 ?? In zlib from 2.0

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Pascal Volk
On 04/09/2010 02:45 PM Alex Baule wrote: I Dont want the configuration. I Want know how is implemented. Explain, the functions, the hooks to get write a email stuffs like this. How it is implemented: http://hg.dovecot.org/dovecot-2.0/file/tip/src/plugins/zlib Regards, Pascal --

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Alex Baule
Hi Paschal You do not understand what I want. I developed a plugin based on the zlib plugin, but want to port it to dovecot 2.0. There are some differences in the 2.0 plugin, which I did not quite understand how it works for me to readjust it in my plugin. As in the source code there are not

Re: [Dovecot] zlib Plugin Dovecot 2.0

2010-04-09 Thread Alex Baule
Hi Paschal You do not understand what I want. I developed a plugin based on the zlib plugin, but want to port it to dovecot 2.0. There are some differences in the 2.0 plugin, which I did not quite understand how it works for me to readjust it in my plugin. As in the source code there are not

[Dovecot] zlib Plugin Dovecot 2.0

2010-04-08 Thread Alex Baule
Hi Everyone Someone can explain to me the difference from zlib 1.2.X and 2.0 beta4 ?? In zlib from 2.0 beta4, Which part of the plugin is responsible for write the compressed message ?

[Dovecot] zlib plugin trouble

2010-02-16 Thread Stéphane Cottin
Hi, I have error with dovecot 1.2.10 + compress on deliver patch and zlib plugin. logfile sample: [...] mail.err: Feb 16 14:22:25 dovecot: IMAP(hid...@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:25 dovecot: IMAP(hid...@domain.com): FETCH for mailbox

Re: [Dovecot] zlib plugin trouble

2010-02-16 Thread Timo Sirainen
On Tue, 2010-02-16 at 15:30 +0100, Stéphane Cottin wrote: Hi, I have error with dovecot 1.2.10 + compress on deliver patch and zlib plugin. logfile sample: [...] mail.err: Feb 16 14:22:25 dovecot: IMAP(hid...@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16

Re: [Dovecot] zlib plugin trouble

2010-02-16 Thread Leonardo Rodrigues
Em 16/02/2010 12:30, Stéphane Cottin escreveu: Hi, I have error with dovecot 1.2.10 + compress on deliver patch and zlib plugin. logfile sample: [...] mail.err: Feb 16 14:22:25 dovecot: IMAP(hid...@domain.com): zlib_istream.seek() failed: Invalid argument mail.err: Feb 16 14:22:25 dovecot:

Re: [Dovecot] zlib plugin trouble

2010-02-16 Thread Stéphane Cottin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 16 févr. 2010 à 16:27, Timo Sirainen a écrit : On Tue, 2010-02-16 at 15:30 +0100, Stéphane Cottin wrote: Hi, I have error with dovecot 1.2.10 + compress on deliver patch and zlib plugin. logfile sample: [...] mail.err: Feb 16 14:22:25

Re: [Dovecot] zlib plugin trouble

2010-02-16 Thread Leonardo Rodrigues
Em 16/02/2010 13:27, Timo Sirainen escreveu: Yeah, bzip2 code is broken in v1.2. I fixed it in v2.0 by basically rewriting the whole thing. Maybe I should just disable bzip2 support in v1.2. will dovecot 2.0 be able to handling mixed maildirs with gzip and bzip2 compressed messages,

Re: [Dovecot] zlib plugin trouble

2010-02-16 Thread Stéphane Cottin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 16 févr. 2010 à 16:28, Leonardo Rodrigues a écrit : Em 16/02/2010 12:30, Stéphane Cottin escreveu: Hi, I have error with dovecot 1.2.10 + compress on deliver patch and zlib plugin. logfile sample: [...] mail.err: Feb 16 14:22:25

Re: [Dovecot] zlib plugin trouble

2010-02-16 Thread Timo Sirainen
On 16.2.2010, at 17.39, Stéphane Cottin wrote: mail.err: Feb 16 14:22:26 dovecot: IMAP(hid...@domain.com): gzread() failed: DATA_ERROR_MAGIC I made a simple script to gzip uncompressed messages and convert bzip2 to gzip (I can share it if anyone cares), There is no bzip2 compressed files

  1   2   >