$ pip install -r requirements.txt
Setup Apache CouchDB or Cloudant
Publishing the Design Doc / CouchApp to CouchDB is handled by a
gulp script, so it's as easy as...
$ cp config.json.sample config.json $ # customize the config.json file $ npm install $ gulp
This option requires a Context.IO Developer Account. Visit the Settings section of your account and get the API key & secret, then...
$ cp config.contextio.sample.ini account-name.ini $ # customize the new .ini file $ python contextio.py account-name.ini
Hope for the best!
It should export the number of emails you specify,
store them by their
Message-ID header value (or
Message-ID is missing).
Note: Checkout the
README if you want
to setup a basic email address obfuscator and UI.
IMAP via easyimap.py
import.py uses IMAP to connect to the mail server. See the Context.IO option below for something more...resilient.
$ cp config.sample.ini account-name.ini $ # customize the new .ini file $ python import.py account-name.ini
The Design Doc includes basic MapReduce for counting things (see Futon,
Fauxton, or the Cloudant Dashboard for more). The UI for this is still in the
It also includes some Cloudant specific Full-Text Search indexes. These indexes let you search email addresses, subject lines, and message bodies.
Here are some examples...
Search for "fauxton":
Count those results by
/couchdb-mailing-lists/_design/couchmail/_search/mail?q=fauxton&counts=["subject", "to", "from"]
Now drilldown those results to just what I've posted:
/couchdb-mailing-lists/_design/couchmail/_search/mail?q=fauxton&counts=["subject", "to", "from"]&drilldown=["from", "Benjamin Young <email@example.com>"]