email package vs. mimify.mime_encode_header

Tim Roberts timr at probo.com
Mon Oct 20 22:59:57 EDT 2003


iny+news at iki.fi (Ilpo Nyyssönen) wrote:
>
>The point really is that the encoding should be done in such way that
>only the minimum amount is encoded.

Maybe, but that's just one opinion.  What if there are several special
characters separated around the string?  Do you include the =?iso-8859-1?q?
string several times, or do you enclose the whole string?  That's a
difficult decision to make.

Plus, in the final analysis, those encoded headers are not particularly
designed for human consumption, anyway.  The assumption is that a mailer at
the other end is going to convert the name into something in the native
character set for presentation.  Given that, it seems kind of silly to try
to optimize the encoding anyway.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.




More information about the Python-list mailing list