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 invisibleroads
Recipients invisibleroads
Date 2010-11-29.05:12:24
SpamBayes Score 0.23687787
Marked as misclassified No
Message-id <1291007549.31.0.430176835889.issue10574@psf.upfronthosting.co.za>
In-reply-to
Content
Currently using the following workaround.

import re
import email.header

def decodeSafely(x):
    match = re.search('(=\?.*?\?B\?)', x)
    if not match:
        return x
    encoding = match.group(1)
    return email.header.decode_header('%s%s==?=' % (encoding, x.replace(encoding, '').replace('?', '').replace('=', '')))
History
Date User Action Args
2010-11-29 05:12:29invisibleroadssetrecipients: + invisibleroads
2010-11-29 05:12:29invisibleroadssetmessageid: <1291007549.31.0.430176835889.issue10574@psf.upfronthosting.co.za>
2010-11-29 05:12:24invisibleroadslinkissue10574 messages
2010-11-29 05:12:24invisibleroadscreate