On Fri, 16 Oct 2009 11:50:17 +0400
Vladimir Dronnikov <[email protected]> wrote:

> >
> > We should also not treat lines starting with whitespace as such a
> > delimiter - because of RFC2822 2.2.3 - "Long Header Fields".
> >
> 
> Right. The logic might be cryptic though. How to definitely separate
> such lines from possible beginning of justified (centered, indented)
> message body?
> 
> The approach might be to treat lines starting with whitespace as
> headers iff "list" is not empty, which means "ok, we saw a valid
> header, so we assume headers will be terminated properly, by means of
> an empty line".

Sounds right. A continuation can, by definition, only appear after a

Header: .....

was seen, and only before the empty line that splits header and body.

> > But that's probably really a corner case and not too common in the
> > typical usage of busybox sendmail.
> 
> Still we wanna be useful in all cases.

This is why I mentioned it ;)

> > I'll cook up a patch anyway, once I
> > get to it.
> >
> 
> Welcome. What do you think of the approach to cope with long headers
> mentioned above?

See above. It might take a bit of time until I get to it, since I
actually also need to set up something for testing it ;)

Have fun,

        Stefan
-- 
Stefan Seyfried

"Any ideas, John?"
"Well, surrounding them's out."
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to