'Decode an RFC2047-encoded email header (e.g.
"Dominic =?ISO-8859-1?Q?K=F6nig?=") and return it as unicode.
@param header: the header'

@staticmethod
def decode_email(header):

    import re
    header = re.sub('(=\\?.*\\?=)(?!$)', '\\1    ', header)
    from email.header import decode_header
    decoded = decode_header(header)
    return '    '.join([s3_unicode(part[0], (part[1] or 'ASCII')) for part in decoded])
