def _parse_email_headers_as_inline(self, file_data, parsed_mail, email_id):
    p = re.compile('(?<=\\r\\n).*Forwarded Message.*\\r\\n', re.IGNORECASE)
    email_text = p.sub('', file_data.strip())
    mail = email.message_from_string(email_text)
    self._parse_email_headers(parsed_mail, mail, add_email_id=email_id)
    return phantom.APP_SUCCESS
def _parse_email_headers_as_inline(self, file_data, parsed_mail, email_id):
    p = re.compile('(?<=\\r\\n).*Forwarded Message.*\\r\\n', re.IGNORECASE)
    email_text = p.sub(, file_data.strip())
    mail = email.message_from_string(email_text)
    self._parse_email_headers(parsed_mail, mail, add_email_id=email_id)
    return phantom.APP_SUCCESS