def _get_container_name(self, parsed_mail, email_id):
    def_cont_name = 'Email ID: {0}'.format(email_id)
    subject = parsed_mail.get(PROC_EMAIL_JSON_SUBJECT)
    if (not subject):
        return def_cont_name
    try:
        return str(make_header(decode_header(subject)))
    except Exception:
        return self._decode_uni_string(subject, def_cont_name)
def _get_container_name(self, parsed_mail, email_id):
    def_cont_name = 'Email ID: {0}'.format(email_id)
    subject = parsed_mail.get(PROC_EMAIL_JSON_SUBJECT)
    if (not subject):
        return def_cont_name
    try:
        return str(make_header(decode_header(subject)))
    except Exception:
        return self._decode_uni_string(subject, def_cont_name)