Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.25 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.25 KB

MBOX to CSV

Platform Python

A Python script for extracting emails from an MBOX file into a CSV file. The script also provides the ability to filter out emails from a certain name/email address.

How to Run the Script

[1] Install Docker

[2] Clone the Repository, Run the Script!

~ $ git clone https://github.com/jarrodparkes/mbox-to-csv
~/mbox-to-csv $ cd mbox-to-csv/
~/mbox-to-csv $ ./run.sh

Note: You could also download the repository directly using this link.

An Example

I've provided an example.mbox file to demonstrate how the script is used. For this example, I want the script to only extract emails that [email protected] sent:

~/mbox-to-csv $ ./run.sh
name of mbox file in current directory (ex. my_file.mbox): example.mbox
name of sender that you want to filter (ex. Jarrod Parkes):
email of sender that you want to filter (ex. [email protected]): [email protected]
generated csv file called clean_mail.csv
# clean_mail.csv only contains emails [email protected] sent