[Email-SIG] blog post about the headef folding algorithm rewrite

Glenn Linderman v+python at g.nevcal.com
Tue Apr 12 00:26:27 CEST 2011


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/email-sig/attachments/20110411/24013dc5/attachment.html>


More information about the Email-SIG mailing list