Re: problem with internationalized headers in email package
- From: "Martin v. Löwis" <martin@xxxxxxxxxxx>
- Date: Mon, 30 Jun 2008 03:38:47 +0200
+ An 'encoded-word' MUST NOT appear in any portion of an 'addr-spec'.
+ An 'encoded-word' MUST NOT appear within a 'quoted-string'.
+ An 'encoded-word' MUST NOT be used in a Received header field.
+ An 'encoded-word' MUST NOT be used in parameter of a MIME
Content-Type or Content-Disposition field, or in any structured
field body except within a 'comment' or 'phrase'.
However (Python 2.5.2):
'=?utf-8?b?QW5kcsOoIDxhbmRyZUBsb2NhbGhvc3Q+?='h = Header(u'Andrè <andre@localhost>')
h.encode()
I'm not sure if this can be considered a bug, but surely this is an
invalid header.
Which of the conditions do you consider validated? It seems to me that
this would make a completely correct Subject header, for example.
Regards,
Martin
.
- References:
- problem with internationalized headers in email package
- From: Manlio Perillo
- problem with internationalized headers in email package
- Prev by Date: How to invoke the Python idle
- Next by Date: Re: How to invoke the Python idle
- Previous by thread: problem with internationalized headers in email package
- Next by thread: tkinter, loading image error, TclError: couldn't recognize data in image file "C:/users/me/desktop/images/blob4.jpg"
- Index(es):