Get all the stats of your email
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates Initial Commit of mail-trends v20080326 Jul 19, 2011
.gitignore Added support for generic IMAP mailboxes Jul 19, 2011 Performance improvements Jul 20, 2016 Fix Gmail virtual box ignore Jan 23, 2017
mailtrends.png Added clarification fo usage regarding labels Jul 28, 2016

Mail Trends

Mail Trends lets you analyze and visualize your email (as extracted from an IMAP server). You can see:

  • Distribution of messages by year, month, day, day of week and time of day.
  • Distribution of messages by size and your top 40 largest messages
  • The top senders, recipients and mailing lists you're on.
  • Distributions of senders, recipients and mailing lists over time
  • The distribution of thread lengths and the lists and people that result in the longest threads

Mail Trends example

Runtime:  3616.67s user 67.15s system 98% cpu 1:05:30.53 total

This package was modified from the original in order to fix some errors, greatly improve its performance, reduce memory consumption, and to add support for a larger amount of servers, and email origins.

Currently it supports: "Any" IMAP Server, Maildir folders and Mailbox Packages (MacOS

For GMAIL, it may produce duplicate stats unless you filter results to only consider the "All Mail" folder.

If you have all your IMAP accounts configured in, with offline messages, just use --mailboxpackage=~/Library/Mail/V3 and it will process all local and remote folders.

For the original version, please see:

Original Copyright Mihai Parparita modified by João Paulo Barraca and Rui Ferreira

Example usage

./ --username=guest --password=1234 --use_ssl

or reading a local Maildir folder

./ --maildir=~/Mail

or reading a Mailbox

./ --mailboxpackage=~/Library/Mail/V3