Project

mbox2csv

0.0
The project is in a healthy, maintained state
Parse MBOX files and export email data into CSV format
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 0.2.0
~> 3.3
~> 2.8.1
 Project Readme

mbox2csv -- Parse MBOX files and export email data into CSV format

📦 Installation • 🚀 Usage • 🔑 Licence

mbox2csv is a Ruby gem that provides a simple way to parse MBOX files and export email data into CSV format. It also generates valuable email statistics for data mining tasks, such as the number of emails sent by each sender and recipient and average body lengths. This is ideal for analyzing email datasets or processing email archives.

📦 Installation

$ gem install mbox2csv

🚀 Usage

Basic run example

require 'mbox2csv'

# Define file paths
mbox_file = '/path/to/the/INBOX_file'
all_emails = 'emails.csv'
sender_stats_all_emails = 'email_statistics.csv'
recipient_stats_all_emails = 'recipient_statistics.csv'

# Initialize the parser with the file paths
parser = Mbox2CSV::MboxParser.new(mbox_file, all_emails, sender_stats_all_emails, recipient_stats_all_emails)

# Parse the MBOX file, save email data, and generate statistics
parser.parse

🔑 License

This package is distributed under the MIT License. This license can be found online at http://www.opensource.org/licenses/MIT.

Disclaimer

This framework is provided as-is, and there are no guarantees that it fits your purposes or that it is bug-free. Use it at your own risk!