Re: mhbuild and long header fields

2023-09-01 Thread David Levine
Philipp wrote:

> This was to vague asked by me. I was woundering about the API. Should
> fold construct a string of the complete field or only the body.

I think the wwy you have it currently implemented is fine:  only the body
but it accounts for the length of the name.

David



Re: mhbuild and long header fields

2023-09-01 Thread Philipp
[2023-08-31 22:14] David Levine 
> Philipp wrote:
>
> > I have a version with charstring_t attached. I'm unsure if it's better
> > to only fold the body or include the field name. The version attached
> > only fold the body.
>
> RFC 5322 ยง2.2.3 only mentions folding the body.  And field names
> can't have whitespace.  So I think that only a body can be folded.

This was to vague asked by me. I was woundering about the API. Should
fold construct a string of the complete field or only the body.

Philipp