This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients dandre, r.david.murray
Date 2011-07-28.15:53:20
SpamBayes Score 0.005682841
Marked as misclassified No
Message-id <1311868400.8.0.836129793759.issue12649@psf.upfronthosting.co.za>
In-reply-to
Content
Interesting thread.  I have my eye on supporting 5335 in the revised email package, but it is secondary goal to getting an improved API for the already-accepted RFCs.

You will note that the encoded word local part is *not* standard.  I think the email package may decode them anyway, but just like TB it provides no mechanism for creating them in the first place since it is not RFC compliant.  You could open a feature request for adding support for doing so (as an *optional* feature :), which I would then try to get in to 3.3.  (It puzzles me why it *isn't* allowed by the RFC, by the way).

To do it yourself now, you will probably have to create a temporary Header, pass it just the local part, call its encode or __str__ to get the encoded word (which won't have any spaces since it will be the only token), and then format that in to your rebuilt address string.
History
Date User Action Args
2011-07-28 15:53:20r.david.murraysetrecipients: + r.david.murray, dandre
2011-07-28 15:53:20r.david.murraysetmessageid: <1311868400.8.0.836129793759.issue12649@psf.upfronthosting.co.za>
2011-07-28 15:53:20r.david.murraylinkissue12649 messages
2011-07-28 15:53:20r.david.murraycreate