Is there any way to work around this in DSPAM itself?
On Aug 18, 2005, at 3:13 PM, gelle@umich.edu wrote:
>
> 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
>>
>>
>
>
>
> !DSPAM:4304ddb0216243634380129!
>
>
>
Cheers!
--Chris Ryland / Em Software, Inc. / www.emsoftware.com
Received on Thu Oct 13 15:22:19 2005
This archive was generated by hypermail 2.1.8 : Fri Oct 14 2005 - 00:00:00 EDT