A tool to analyze email exports, identify commercial emails, and generate deletion instructions.
The Email Export Parser helps you analyze email exports (such as those from Gmail or other providers), identify commercial/promotional emails, and generate reports and instructions for managing or deleting them. This tool is particularly useful for:
- Cleaning up your inbox by identifying promotional emails
- Generating step-by-step instructions for unsubscribing from mailing lists
- Analyzing your email usage patterns
- Email Analysis: Scans through email export directories to identify commercial emails
- Report Generation: Creates CSV reports of commercial emails with details
- Deletion Instructions: Generates step-by-step instructions for managing identified emails
- Multilingual Support: Provides instructions in English, French, or both
- Dual Interface: Offers both a command-line interface (CLI) and a graphical user interface (GUI)
-
Clone this repository:
git clone https://github.com/les-enovateurs/cleanup-web cd cleanup-web -
Install the required dependencies:
pip install -r requirements.txt
To use the GUI, simply run the script without any arguments:
python main.py
The GUI allows you to:
- Select the email export directory
- Choose an output directory for reports
- Select the language for deletion instructions
- Monitor progress with a status log and progress bar
For command-line usage:
python main.py [export_directory] [output_directory] [language]
Arguments:
export_directory: Path to the directory containing email export filesoutput_directory(optional): Path where reports will be saved (defaults to export directory)language(optional): Language for deletion instructions (en,fr, orboth, defaults toen)
Example:
python main.py ~/Downloads/Takeout/Mail ~/Documents/EmailReports en
This tool is designed to work with standard email export formats, particularly those from Gmail's Google Takeout service. The export should contain .eml or .mbox files.
The tool generates two main output files:
commercial_emails_report.csv: A detailed CSV report of all identified commercial emailsdeletion_instructions.txt: Step-by-step instructions for managing the identified emails
- Python 3.6 or higher
- Dependencies listed in
requirements.txt
Contributions are welcome! Please feel free to submit a Pull Request.
This tool was created by Jérémy Pastouret and made with ❤️ by Les E-novateurs.
