{"id":26246119,"url":"https://github.com/firefly-cpp/mbox2csv","last_synced_at":"2026-02-08T00:03:31.538Z","repository":{"id":271944117,"uuid":"915059035","full_name":"firefly-cpp/mbox2csv","owner":"firefly-cpp","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-31T16:58:24.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-04T11:15:40.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firefly-cpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-10T21:55:11.000Z","updated_at":"2025-08-31T16:57:20.000Z","dependencies_parsed_at":"2025-01-10T23:18:05.578Z","dependency_job_id":"bfa947a0-5a6b-4d76-89fe-7fa1c04ef539","html_url":"https://github.com/firefly-cpp/mbox2csv","commit_stats":null,"previous_names":["firefly-cpp/mbox2csv"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/firefly-cpp/mbox2csv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefly-cpp%2Fmbox2csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefly-cpp%2Fmbox2csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefly-cpp%2Fmbox2csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefly-cpp%2Fmbox2csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firefly-cpp","download_url":"https://codeload.github.com/firefly-cpp/mbox2csv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefly-cpp%2Fmbox2csv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29213493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T23:58:20.073Z","status":"ssl_error","status_checked_at":"2026-02-07T23:58:07.729Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-13T13:17:25.515Z","updated_at":"2026-02-08T00:03:31.532Z","avatar_url":"https://github.com/firefly-cpp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    mbox2csv -- Parse MBOX files and export email data into CSV format\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"#-installation\"\u003e📦 Installation\u003c/a\u003e •\n    \u003ca href=\"#-usage\"\u003e🚀 Usage\u003c/a\u003e •\n    \u003ca href=\"#-licence\"\u003e🔑 Licence\u003c/a\u003e\n\u003c/p\u003e\n\nmbox2csv 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.\n\n## 📦 Installation\n\n```sh\n$ gem install mbox2csv\n```\n\n## 🚀 Usage\n\n### Basic run example\n\n```ruby\nrequire 'mbox2csv'\n\n# Define file paths\nmbox_file = '/path/to/the/INBOX_file'\nall_emails = 'emails.csv'\nsender_stats_all_emails = 'email_statistics.csv'\nrecipient_stats_all_emails = 'recipient_statistics.csv'\n\n# Initialize the parser with the file paths\nparser = Mbox2CSV::MboxParser.new(mbox_file, all_emails, sender_stats_all_emails, recipient_stats_all_emails)\n\n# Parse the MBOX file, save email data, and generate statistics\nparser.parse\n\n# Extract attachments\nparser.extract_attachments(extract: true, filetypes: %w[pdf jpg], output_folder: \"exports\")\n\n```\n\n## 🔑 License\n\nThis package is distributed under the MIT License. This license can be found online at \u003chttp://www.opensource.org/licenses/MIT\u003e.\n\n## Disclaimer\n\nThis 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!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirefly-cpp%2Fmbox2csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirefly-cpp%2Fmbox2csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirefly-cpp%2Fmbox2csv/lists"}