Handling Malformed Nested Emails for Tier-2 Export

This document explains how Enterprise Archive handles historical emails migrated from archive solutions, and containing malformed nested emails during Tier-2 export flow.

What is a Malformed Nested Email?

A malformed nested email (P2) refers to an email embedded within a journal email (P1) that Enterprise Archive cannot process correctly. This can happen due to corruption or missing information in the nested email.

What Happens During Export?

Even if the nested email is malformed, Enterprise Archive will still attempt to export the main journal email. Here's a breakdown:

    • Successful Export:

        • If the nested email is parsable, the parsed email is exported successfully.

        • Malformed nested email:

            • Enterprise Archive exports the main journal email.

            • A JournalExtractionFailures.csv file is created within the Summary file (Zip). This file indicates the malformed email export failure and includes relevant IDs for reference.

            • The summary file will be updated with a new line item named "Journal Count" under the "Snapshot Counts" section. This line item will reflect the total number of emails exported as journals due to unreadable inner emails.

              • A status code is recorded in the compliance audit collection for this scenario.

              Who Benefits from This Functionality?

                • Archive Administrators: They can export malformed journal emails for further action.

                  • Case Managers/Reviewers: They can access the main journal email even if the nested email cannot be processed.

                  How to Identify These Exports

                  Exported zip files containing malformed nested emails will include a JournalExtractionFailures.csv file for reference.

                  Tier-2 Export Scenarios for Journal Emails with Malformed Nested Emails

                  Scenario

                  Input Mail

                  Participant API Response

                  Nested Email Extraction

                  EML Export

                  PDF Export

                  Description

                  Valid Journal Email

                  Correctly formatted journal email (contains header or message-id indicating journal)

                  All participants from the journal email and the nested email.

                  Extracted successfully

                  Exported as extracted email

                  Exported as transformed email

                  Successful export of both journal and inner email

                  Regular Email

                  Correctly formatted regular email

                  All participants from regular email

                  Not applicable (no nested email)

                  Exported as regular email

                  Exported as transformed email

                  Successful export of regular email

                  Journal Email Missing Identifiers

                  Archived email missing required journal identifiers (header or message-id)

                  All participants from regular email

                  Not applicable (not a true journal email)

                  Exported as archived email (appears like journal)

                  Exported with original email as EML attachment

                  Export of unrecognized journal email as regular email with attachment

                  Regular Email Incorrectly Sent as Journal

                  Regular email with journal identifiers (header or message-id)

                  All participants from archived email

                  Not applicable (not a true journal email)

                  Exported as regular email

                  Exported as transformed email

                  Export of unrecognized journal email as regular email

                  Valid Journal Email with Malformed Attachment

                  Correct journal email with unreadable nested email

                  All participants from journal email

                  Fails due to malformed attachment

                  Exported as archived email (appears like journal)

                  Exported with original email as regular attachment

                  Export of journal email with unreadable nested email as attachment

                  Malformed Journal Email

                  Unreadable journal email (contains journal identifiers)

                  Exception (parsing error)

                  Not applicable (unreadable email)

                  Exported as archived email (uncertain type)

                  Not applicable (failure)

                  Record failure in errors.csv

                  Malformed Regular Email

                  Unreadable regular email

                  Exception (parsing error)

                  Not applicable (unreadable email)

                  Exported as archived email (uncertain type)

                  Not applicable (failure)

                  Record failure in errors.csv

                  Valid Journal Email without Attachment

                  Journal email without inner email (P2)

                  All participants from journal email

                  Fails due to missing inner email

                  Exported as archived email (appears like journal)

                  Exported as transformed email

                  Export of journal email without inner email