Hello,
I've not been following this thread terribly closely, but does dbmail
allow messages with null's to be inserted properly? rfc 2822 allows
nulls within the message body, so if there were some in the original
message, and dbmail-{s,l}mtp allowed those to be inserted properly,
the behavior described below would cause incomplete messages to be
returned. I think the Right Thing(tm) is to allow nulls to be contained
in the message and returned just as the original message was - but I
know that gets ugly in C. Definitely put it on the future todo list
if nothing else...
---- Original Message ----
From: Ilja Booij <dbmail-dev@dbmail.org>
To: DBMAIL Developers Mailinglist <dbmail-dev@dbmail.org>
Subject: Re: [Dbmail-dev] parser bug
Sent: Wed, 14 Apr 2004 14:39:36 +0200
> On Wed, 2004-04-14 at 14:13, Paul J Stevens wrote:
> <snip info page>
> >
> > So, if the row contains nulls, or db_get_length return value bigger than the
> > actual string length, msgbuf_buf is filled with nulls, correct?
> I guess you're right :)
> So, we should take the length of the string with strlen(), which would
> result in the length up to the first NUL character, and use only that
> part, and not send the NUL characters themselves.
>
> This seems like logical behaviour, even though at first it's only a
> workaround for our current problem.
>
> Ilja
>
>
> _______________________________________________
> Dbmail-dev mailing list
> Dbmail-dev@dbmail.org
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
>
-- End Original Message --
--
Jesse Norell
administrator@kci.net is not my email address;
change "administrator" to my first name.
--