Python script for converting MBOX files to CSV.
Last updated Apr 28, 2026
93
Stars
33
Forks
6
Issues
0
Stars/day
Attention Score
39
Language breakdown
Python 98.4%
Shell 1.6%
βΈ Files
click to expand
README
MBOX to CSV
Extract emails from an MBOX file into a CSV file.
Example
# make a copy of rules.example.py named rules.py
cp rules.example.py rules.py
make a copy of .env.example named .env
cp .env.example .env
launch virtual environment with included dependencies
source env/bin/activate
install the required packages
python3 -m pip install -r requirements.txt
run tool using example file
python3 mbox_parser.py example.mbox
deactivate virtual environment
deactivate
Embedding Python Interpreter and Dependencies into Platypus-Built App
With some manual effort, it is possible to package this script as a drag-and-drop Platypus-built Mac app. In order to do this, we are required to bundle a python installation (interpreter and dependencies) within the app's resources. This is possible by following the guide below.
Once you are done with this guide, then you need to remove thepython3.8/lib/python3.8/site-packages symlink and replace it with the site-packages that have been installed in your virtual environment as you were developing.
References
π More in this category