Fwd: Re: [dspam-users] Dspam + cyrus-imap errors
Andreas Hasenack
ahasenack at terra.com.br
Sun Aug 21 10:09:44 EDT 2005
Anybody here got this?
---------- Mensagem reenviada ----------
Subject: Re: [dspam-users] Dspam + cyrus-imap errors
Date: Quinta 18 Agosto 2005 16:13
From: gelle at umich.edu
To: tommy at bucknet.co.za
Cc: dspam-users at lists.nuclearelephant.com
We had the same thing. It's a bug in cyrus (off by one) so when they
read their own null from the buffer they complain the message has a
null. We patched it. We also sent the patch into cyrus.
dspam unwraps wrapped text in html or 'rich text' parts of messages to
tokenize. This leads to long lines that exceed the size of the buffer
and exercise the bug.
There is a question of dspam design, and whether it might be ideal to
work on a copy of the message and then send out the original with only
the tags inserted (if body sig is on), but the cyrus thing is
definitely a bug.
--- cyrus-imapd-2.2.12/imap/spool.c 2004-10-27 16:40:50.000000000
-0400
+++ cyrus-imapd-2.2.12p10/imap/spool.c 2005-05-27 17:25:09.000000000
-0400
@@ -451,9 +455,9 @@
p[1] = '\n';
p[2] = '\0';
}
- else if (p[0] != '\n' && (strlen(buf) < sizeof(buf)-2)) {
+ else if (p[0] != '\n' && (strlen(buf) < sizeof(buf)-3)) {
/* line contained a \0 not at the end */
r = IMAP_MESSAGE_CONTAINSNULL;
continue;
}
gabi
On Aug 18, 2005, at 5:16 AM, Tommy Papangeli wrote:
> Hi there
>
> I have some serious errors when running Cyrus-imap(2.2.12) with
> dspam(3.4.6) , some emails bounce with a "Message contains invalid
> header", I think i have tried everything possible. If I bypass dspam
> then those mail pass through fine.
>
> Does anyone have any idea What the problem could be.
>
> Any input would be greatly appreciated
>
> Regard
> Tommy
>
-------------------------------------------------------
More information about the Cyrus-devel
mailing list