def _int_process_email(self, rfc822_email, email_id, start_time_epoch):
    mail = email.message_from_string(rfc822_email)
    tmp_dir = tempfile.mkdtemp(prefix='ph_email')
    try:
        ret_val = self._handle_mail_object(mail, email_id, rfc822_email, tmp_dir, start_time_epoch)
    except Exception as e:
        message = 'ErrorExp in _handle_mail_object: {0}'.format(e)
        self._base_connector.debug_print(message)
        return (phantom.APP_ERROR, message, [])
    results = [{'container': self._container, 'artifacts': self._artifacts, 'files': self._attachments, 'temp_directory': tmp_dir}]
    return (ret_val, PROC_EMAIL_PARSED, results)
def _int_process_email(self, rfc822_email, email_id, start_time_epoch):
    mail = email.message_from_string(rfc822_email)
    tmp_dir = tempfile.mkdtemp(prefix='ph_email')
    try:
        ret_val = self._handle_mail_object(mail, email_id, rfc822_email, tmp_dir, start_time_epoch)
    except Exception as e:
        message = 'ErrorExp in _handle_mail_object: {0}'.format(e)
        self._base_connector.debug_print(message)
        return (phantom.APP_ERROR, message, [])
    results = [{'container': self._container, 'artifacts': self._artifacts, 'files': self._attachments, 'temp_directory': tmp_dir}]
    return (ret_val, PROC_EMAIL_PARSED, results)