Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mbox2csv

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mbox2csv

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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!

FAQs

Package last updated on 21 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc