Skip to content

njcameron/mbox-to-csv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 parkesfjames@gmail.com 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. parkesfjarrod@gmail.com): parkesrjames@gmail.com
generated csv file called clean_mail.csv
# clean_mail.csv only contains emails parkesfjames@gmail.com sent

About

Python script for converting MBOX files to CSV.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Shell 0.4%