On Sun Jun 03 09:11:05 2007, RJBS wrote:
Show quoted text
I've checked bugzilla and so long as I read it, I am not sure if it is appropriate to blame it on
Encode.
As a matter of fact, my first implementation of MIME-Header encoding (that appered in
Jcode) did not include line folding and that was denouced as a bug so I fixed it (to be more
exact, I imported Ohzaki-san's fix). And Encode imported that implementation. That code
has been around since 20th century and now you are calling that a bug!
IMHO using Encode to encode to MIME Header is not as recommended as decoding therefrom
Rember that MIME encoding is two-stage encoding so you have more than two parameters to
to specify; its actual encoding AND which MIME encoding. And in this case, wether you fold
the line or not. Encode's API is not very fit to fine-tune gory details.
I'll leave this ticket open but until someone comes up with a "neater way to do it", I'll leave
Encode as it is.
Dan the Encode Maintainer