Skip to content

remeh/mboximporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MboxImporter

A basic tool to import your .mbox file into MongoDB for query.

It's just a basic side-project development developed in a few hours for fun. Don't hesitate to provide pull-requests or to submit ideas.

On my machine (core i5, 8gb of ram), it imports approximately 2500 mails/second.

Build

go get github.com/bthomson/mbox
go get gopkg.in/mgo.v2
go build mboximporter.go

Usage

Usage of ./mboximporter:
    -c=20: Maximum amount of messages in the same time in the pool of process.
    -d="mails": The DB name to use in MongoDB.
    -f="mails.mbox": Name of the filename to import
    -m="localhost": The Mongo URI to connect to MongoDB.
    -n=-1: Number of mails to import.
    -w=10: Maximum amount of workers.

About

MBox file importer to MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages