Skip to content

Instantly share code, notes, and snippets.

View droposhado's full-sized avatar

Flaverton Rodrigues Rosa droposhado

View GitHub Profile
@kadin2048
kadin2048 / emlToMbox.py
Last active March 19, 2024 03:55
Combine a directory of .eml files into a single Unix "mbox" file.
#!/usr/bin/env python3
""" Converts a directory full of .eml files to a single Unix "mbox" file.
This is similar to http://www.cosmicsoft.net/emlxconvert.html
Accepts as input either an individual .eml file or a directory containing one
or more .eml files.
Usage:
$ ./emlToMbox.py inputdir/ output.mbox