Skip to content

critocrito/eml-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues GPL-3.0 License


EML Parser

Extract data from a corpus of emails.
Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

This code was developed to support investigations that took place at Der SPIEGEL and Paper Trail Media.

(back to top)

Getting Started

Prerequisites

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

Installation

  1. Clone the repo
    git clone https://github.com/critocrito/eml-parser.git
  2. Compile the code.
    cargo build --release
  3. Run the program.
    ./target/release/eml-parser --help

(back to top)

Usage

This program reads all .eml files in a directory and sub-directories and extract or transforma data in it.

List addresses and names

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

Turn a corpus to a network graph

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

Extract all attachments

eml-parser attachment -o attachments mail-directory

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the GPL-3.0 License. See LICENSE.txt for more information.

(back to top)

Contact

Christo Buschek - @christo_buschek - [email protected]

Project Link: https://github.com/critocrito/eml-parser

(back to top)

Releases

No releases published

Packages

No packages published

Languages