Load email from .mbox files into SQLite
Project description
mbox-to-sqlite
Load email from .mbox files into SQLite
Installation
Install this tool using pip
:
pip install mbox-to-sqlite
Usage
Use the mbox
command to import a .mbox
file into a SQLite database:
mbox-to-sqlite mbox emails.db path/to/messages.mbox
You can try this out against an example containing a sample of 3,266 emails from the Enron corpus like this:
curl -O https://raw.githubusercontent.com/ivanhb/EMA/master/server/data/mbox/enron/mbox-enron-white-s-all.mbox
mbox-to-sqlite mbox enron.db mbox-enron-white-s-all.mbox
You can then explore the resulting database using Datasette:
datasette enron.db
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd mbox-to-sqlite
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mbox-to-sqlite-0.1a0.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for mbox_to_sqlite-0.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25b8dc743c4084f2f34147cfbb70e43bb76b064a54385d90deeccaaf0ae02688 |
|
MD5 | a88c4039e6bd8e0427a51eeb2bca0ca2 |
|
BLAKE2b-256 | 40c170f5152f4f4051d5b1c7582766df700bcf0a7e51a39549805135916be502 |