[Python-bugs-list] [ python-Bugs-425868 ] mimify.mime_encode_header problem

noreply@sourceforge.net noreply@sourceforge.net
Mon, 21 May 2001 03:09:49 -0700


Bugs item #425868, was updated on 2001-05-21 03:09
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=425868&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: mimify.mime_encode_header problem

Initial Comment:
Within the standard-module mimify.py, the function 
mime_encode_header does not work RFC2047-compliant (in 
fact, it does not work for me at all).

Please take a look at the following interactive 
session:
--------
Python 2.1 (#8, May  4 2001, 12:40:12)
[GCC 2.95.2 19991024 (release)] on linux2
Type "copyright", "credits" or "license" for more 
information.
>>> import mimify
>>> print mimify.mime_encode_header("Subject: äöüß 
äöüß Test  äöüß\n")
Subject: =?ISO-8859-1?Q?=E4=F6=FC=DF?= äöüß Test  =?
ISO-8859-1?Q?=E4=F6=FC=DF?=
--------

As you can see, the second word with 8-bit characters 
has not been encoded at all. Only because there are 
two spaces behind "Test" the last word has been 
encoded.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=425868&group_id=5470