[Dovecot] Patch for zlib and maildir for 1.0.13
Richard Platel
rplatel at tucows.com
Thu May 1 00:30:25 EEST 2008
There was a bug in this patch, causing a seg fault with 0 or 1 byte
messages (which shouldn't really happen, but, hey). Patched patch
attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zlib-plugin.c.patch
Type: application/octet-stream
Size: 1562 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20080430/dd28d696/attachment.obj
-------------- next part --------------
On Apr 3, 2008, at 3:04 PM, Richard Platel wrote:
> When using the zlib plugin with maildir and copying with hardlinks,
> if a compressed message is copied, the 'Z' suffix on the file isn't
> copied, so the new message isn't uncompressed when it's fetched.
>
> I wasn't smart enough to figure out a clean way to carry a file
> suffix through a copy, so I changed how the zlib-plugin detects if
> a message is compressed. This patch peeks at the first two bytes
> of the message looking for the zlib header.
>
> --
> Richard Platel
> Tucows<zlib-plugin.c.patch>
More information about the dovecot
mailing list