Extract data from a corpus of emails.
Report Bug
·
Request Feature
Table of Contents
This code was developed to support investigations that took place at Der SPIEGEL and Paper Trail Media.
This project requires the Rust toolchain. The easiest way to install it is to use Rustup.
-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Clone the repo
git clone https://github.com/critocrito/eml-parser.git
- Compile the code.
cargo build --release
- Run the program.
./target/release/eml-parser --help
This program reads all .eml
files in a directory and sub-directories and extract or transforma data in it.
This command lists all email addresses and names in a corpus and count the occurences of this email/name appearing in the From
, To
, Cc
or Bcc
email header.
eml-parser list -o people.csv mail-directory
The CSV file of the network graph can be used at Cosmograph for visualization or further analyzed with tools like graphctl.
eml-parser network -o graph.csv mail-directory
eml-parser attachment -o attachments mail-directory
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GPL-3.0 License. See LICENSE.txt
for more information.
Christo Buschek - @christo_buschek - [email protected]
Project Link: https://github.com/critocrito/eml-parser