Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remeh/mboximporter
MBox file importer to MongoDB
https://github.com/remeh/mboximporter
Last synced: 3 months ago
JSON representation
MBox file importer to MongoDB
- Host: GitHub
- URL: https://github.com/remeh/mboximporter
- Owner: remeh
- Created: 2014-09-21T16:15:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-27T21:47:57.000Z (about 10 years ago)
- Last Synced: 2023-03-24T08:46:08.497Z (almost 2 years ago)
- Language: Go
- Size: 176 KB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
```