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: Unexpectedly lost From-line from mbox file 
/var/lib/vpopmail/domains/memoryhole.net/kyle/Maildir/Archive/Intellego.bz2 
at 1907
Error: i_stream_get_size() failed with mbox file 
/var/lib/vpopmail/domains/memoryhole.net/kyle/Maildir/Archive/Intellego.bz2: 
No such file or directory


I made the change suggested by 
http://hg.dovecot.org/dovecot-2.0/rev/ab24859c3527 to istream-bzlib.c, 
and things now work perfectly for bz2-compressed files as well.


~Kyle
--
He who joyfully marches in rank and file has already earned my 
contempt. He has been given a large brain by mistake, since for him 
the spinal cord would suffice.

-- Albert Einstein


signature.asc
Description: Digital signature


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 
>> 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? http://hg.dovecot.org/dovecot-2.0/rev/ab24859c3527

No, that causes a rather ugly panic:


What about the above +
http://hg.dovecot.org/dovecot-2.0/rev/e7768ec9d3de


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: Unexpectedly lost From-line from mbox file 
/var/lib/vpopmail/domains/memoryhole.net/kyle/Maildir/Archive/Intellego.bz2 
at 1907
Error: i_stream_get_size() failed with mbox file 
/var/lib/vpopmail/domains/memoryhole.net/kyle/Maildir/Archive/Intellego.bz2: 
No such file or directory


~Kyle
--
Time is an illusion. Lunchtime doubly so.
  -- Douglas Adams


signature.asc
Description: Digital signature


Re: [Dovecot] zlib plugin weirdness

2010-10-01 Thread 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 
> >> 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? http://hg.dovecot.org/dovecot-2.0/rev/ab24859c3527
> 
> No, that causes a rather ugly panic:

What about the above +
http://hg.dovecot.org/dovecot-2.0/rev/e7768ec9d3de




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:


Does this fix it? http://hg.dovecot.org/dovecot-2.0/rev/ab24859c3527


No, that causes a rather ugly panic:

Error: 
zlib.read(/var/lib/vpopmail/domains/memoryhole.net/kyle/Maildir/Archive/Intellego.gz): 
unexpected EOF at 1764046
Panic: file istream-zlib.c: line 204 (i_stream_zlib_read): assertion 
failed: (zstream->eof_offset == high_offset)
Error: Raw backtrace: /tmp/dovecottesting/lib/dovecot/libdovecot.so.0 
[0xb76769e1] -> /tmp/dovecottesting/lib/dovecot/libdovecot.so.0 
[0xb7676a5f] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot.so.0(i_error+0) 
[0xb7676d18] -> /tmp/dovecottesting/lib/dovecot/lib20_zlib_plugin.so 
[0xb74aaf7a] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot.so.0(i_stream_read+0x7c) 
[0xb767d50c] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot-storage.so.0 [0xb7730cc1] 
-> 
/tmp/dovecottesting/lib/dovecot/libdovecot-storage.so.0(istream_raw_mbox_get_header_offset+0x78) 
[0xb77316a8] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot-storage.so.0 [0xb773bb99] 
-> /tmp/dovecottesting/lib/dovecot/libdovecot-storage.so.0 
[0xb773e154] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot-storage.so.0(mbox_sync+0x4b) 
[0xb773f35b] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot-storage.so.0(mbox_storage_sync_init+0x6d) 
[0xb773f4cd] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x39) 
[0xb76d0949] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot-storage.so.0(mailbox_sync+0x44) 
[0xb76d11f4] -> dovecot/imap [k...@memoryhole.net 64.253.106.173 
SELECT](cmd_select_full+0x1d2) [0x8053962] -> dovecot/imap 
[k...@memoryhole.net 64.253.106.173 SELECT](cmd_select+0x19) 
[0x80543d9] -> dovecot/imap [k...@memoryhole.net 64.253.106.173 
SELECT] [0x805673c] -> dovecot/imap [k...@memoryhole.net 
64.253.106.173 SELECT] [0x80567d9] -> dovecot/imap 
[k...@memoryhole.net 64.253.106.173 SELECT](client_handle_input+0x2d) 
[0x805694d] -> dovecot/imap [k...@memoryhole.net 64.253.106.173 
SELECT](client_input+0x5f) [0x805733f] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xf5) 
[0xb7683275] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot.so.0(io_loop_run+0x30) 
[0xb7682250] -> 
/tmp/dovecottesting/lib/dovecot/libdovecot.so.0(master_service_run+0x2a) 
[0xb766f72a] -> dovecot/imap [k...@memoryhole.net 64.253.106.173 
SELECT](main+0x2b5) [0x805ffb5] -> 
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb74e3455] -> 
dovecot/imap [k...@memoryhole.net 64.253.106.173 SELECT] [0x804eac1]
master: Error: service(imap): child 15613 killed with signal 6 (core 
dumped)


~Kyle
--
Why, this Satan's drink is so delicious that it would be a pity to let 
the infidels have exclusive use of it. We shall fool Satan by 
baptizing it, and making it a truly Christian beverage.

  -- Pope Clement VII, referring to coffee


signature.asc
Description: Digital signature


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? http://hg.dovecot.org/dovecot-2.0/rev/ab24859c3527




[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
/var/lib/vpopmail/domains/memoryhole.net/kyle/Maildir/Archive/Intellego.gz
at 1907
Error: Unexpectedly lost From-line from mbox file
/var/lib/vpopmail/domains/memoryhole.net/kyle/Maildir/Archive/Intellego.gz
at 1907
Error:

zlib.read(/var/lib/vpopmail/domains/memoryhole.net/kyle/Maildir/Archive/Intellego.gz):
unexpected EOF at 1765954
Error: i_stream_get_size() failed with mbox file
/var/lib/vpopmail/domains/memoryhole.net/kyle/Maildir/Archive/Intellego.gz:
No such file or directory

A similar thing happens when I bzip it. I was worried that it wasn't 
even using the zlib plugin, but since it makes reference to zlib.read, 
I assume that it is. Does anyone know what might be going wrong?


~Kyle
--
The only way to oppose a bad idea is to replace it with a good idea.
  -- Jack Kemp


signature.asc
Description: Digital signature