Re: blog post about the headef folding algorithm rewrite

Glenn Linderman <[email protected]> Mon, 11 Apr 2011 15:26:27 -0700
Newsgroups gmane.comp.python.mime.devel
Message-ID <[email protected]>
On 4/11/2011 2:48 PM, R. David Murray wrote:
> For the curious, I just posted a writeup of the process that
> produced the header folding algorithm rewrite on my blog:
>
> http://www.bitdance.com/blog/2011/04/11_01_Email6_Rewriting_Header_Folding/
Interesting!

> [2] 
> <http://www.bitdance.com/blog/2011/04/11_01_Email6_Rewriting_Header_Folding/#id2>There 
> may also be cases where whitespace does /not/ mark a valid folding 
> point. So for email6 the folding API will further need to provide a 
> way for the specific header to indicate these points before folding. 
> The simplest scheme is probably to replace the non-folding whitespace 
> with marker characters, fold the header, and then re-convert the 
> marker characters to the original whitespace.

Another alternative may be to allow the header access to the 
Accumulator, and let it emit chunks directly into the accumulator.  This 
would save reparsing.