Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A program that can be used to convert messages stored in various mailbox formats into JSON format.

Project Description

E-mail message to JSON converter

Version: 0.3.0

Author: Jari Juopperi

Travis CI build: [![Build Status](](


A program that can be used to convert messages stored in various mailbox formats into JSON format. Currently the only supported input format is the `mailbox` format referred in the Python standard library

**Please note that this program is in the early stage of development. It is not ready for the business critical use.**


To install use pip:

$ pip install messages2json

Or clone the repo:

$ git clone
$ python install

To get help on the usage of the program:

$ messages2json --help
usage: messages2json [-h] [--input IN_F_OR_D] [--output OUT_F_OR_D] [--body]
[--format {mbox}] [--force]

Convert e-mail messages to JSON format

optional arguments:
-h, --help show this help message and exit
--input IN_F_OR_D input file or directory
--output OUT_F_OR_D output file or directory
--body include the body of the message, by default only
headers are converted
--format {mbox} the format of input messages
--force Overwrite the output files even if they exist

How to store messages to a file in `mbox` format ?
The following instructions help you to store messages from your favorite e-mail progran/service into a file in `mbox` format:
+ [Mozilla Thunderbird](
+ [Gmail](, not tested.
+ [MS Outlook](, not tested.


Bug report, pull requests and comments are appreciated. Please use the standard mechanisms of GitHub on []( to submit your feedback.

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.0 kB) Copy SHA256 Hash SHA256
Source None Apr 20, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting