Abstract
The popularity of email has triggered researchers to look for ways to help users better organize the enormous amount of information stored in their email folders. One challenge that has not been studied extensively in text mining is the identification and reconstruction of hidden emails. A hidden email is an original email that has been quoted in at least one email in a folder, but does not present itself in the same folder. It may have been (un)intentionally deleted or may never have been received. The discovery and reconstruction of hidden emails is critical for many applications including email classification, summarization and forensics. This paper proposes a framework for reconstructing hidden emails using the embedded quotations found in messages further down the thread hierarchy. We evaluate the robustness and scalability of our framework by using the Enron public email corpus. Our experiments show that hidden emails exist widely in that corpus and also that our optimization techniques are effective in processing large email folders.
Introduction
Email is inherently threaded, but those threads are often broken. A "hidden email" occurs when a message is deleted (intentionally or accidentally) or when a user is added to a conversation late and never received the earlier messages. While the original email is gone, its content often survives as "quoted text" in later replies. This paper introduces a framework to identify and reconstruct these hidden messages by leveraging word-indexing and optimized string-matching techniques, demonstrating efficient recovery from massive datasets like the Enron corpus.
Problem Statement
The challenge lies in discovery and reconstruction. Manually piecing these fragments together is tedious, and automated discovery is computationally expensive. Standard string-matching algorithms (like Longest Common Substring) are too slow to run against folders containing thousands of long emails. Furthermore, because users often edit, truncate, or reformat quotes, the system must be robust enough to handle "fuzzy" matches rather than just exact duplicates.
Methodology
The proposed HiddenEmailFinder algorithm operates in five main steps: extraction of quoted fragments, identification of truly hidden content, overlapping and anchoring to group fragments, precedence graphing to establish order, and final reconstruction.
To achieve scalability, two key optimizations were introduced:
- Email Filtering by Indexing: A word index quickly narrows down potential matches, avoiding full document scans.
- LCS-Anchoring: Instead of standard quadratic-time searches, the system uses "anchors" from the index to jump directly to potential matches and expand them outward.
Experimental Evaluation
The framework was evaluated using the Enron email corpus, focusing on the inbox folders of 137 users. The results demonstrated massive speedups. The unoptimized version of the algorithm took roughly 10 minutes to process a median-sized folder. With the EmailFiltering and LCS-Anchoring optimizations, this dropped to less than 10 seconds—a two-order-of-magnitude improvement.
In tests on large folders (over 1,100 emails), the optimizations were even more critical, reducing processing time from nearly half an hour to just a few minutes. The algorithm also proved robust; changing the matching threshold (minLen) only slightly affected the number of reconstructed emails, suggesting reliability across varied content.
Key Findings
- Ubiquity of Hidden Emails: Hidden fragments are common. For about half of the users in the Enron dataset, 15% to 30% of their emails contained at least one hidden fragment.
- Global Loss: Most hidden fragments were "global," meaning they were completely missing from the user's entire account, not just misplaced in a different folder.
- The Bulletized Model: A perfect linear reconstruction is often impossible. The "bulletized" representation provides a way to show the structure of a recovered email while honestly reflecting where the exact order of fragments is unknown.
- Forensic Implications: This technology allows investigators to reconstruct deleted messages using quotes found in the folders of other recipients.
Conclusion and Future Work
While the current system relies on robust string matching, future work could incorporate Natural Language Understanding (NLU) to better handle heavily edited text. Additionally, automating the detection of non-content elements like signatures and legal disclaimers remains a challenge. Integrating this backend logic into email clients could significantly improve thread summarization and folder management for end-users.
Summary updated