scripts to parse mbox file, convert to csv
- Copy this repository to your computer by opening Terminal/Cygwin and entering
git clone https://github.com/akstuhl/mboxtocsv.git
- Still in Terminal, move into the repository's directory by entering
cd mboxtocsv
- Copy your .mbox file into the mboxtocsv directory
- Open mbox_parser.py in a text editor and in the line
for message in mailbox.mbox('Spam.mbox'):
replaceSpam.mbox
with the name of your .mbox file - Again in the terminal, enter
python mbox_parser.py
- You should see a file appear in the mboxtocsv directory called clean_email.csv, which you can open in Excel, etc.