No Description

George C. Privon 2dccb49c27 add optional shading of "normal" work hours 5 years ago
.gitignore 47c9428eff ignore output png files 10 years ago
LICENSE 1baefc0b66 GPLv3 license 11 years ago
README.md 2721c84eca merge email_destinations into email_stats 10 years ago
email_stats.py 2dccb49c27 add optional shading of "normal" work hours 5 years ago
sample.png bea2bca23b sample analytic plot 11 years ago

README.md

Email Analytics

A short script to do simple analysis of mbox email files.

Currently the script:

  • plots time vs day of all emails, optionally color-coded by user-specified sender information (example below)
  • plots the number of emails delivered to specified domains, as a function of time

In the future, I would like to add capabilities to:

  • histograms collapsed along different axes
  • histogram of popular email addresses
  • gant chart of when email addresses were being emailed
  • histogram of number of attachments and size of attachments
  • histogram of number of recipients
  • word count of emails?
  • python natural language toolkit analysis?

Usage

For usage information:

$ python email_stats.py -h
usage: email_stats.py [-h] [--plotroot PLOTROOT] [--title TITLE]
                      [--sendercolors SENDERCOLORS]
                      mbox

positional arguments:
  mbox                  Mailbox to analyze.

optional arguments:
  -h, --help            show this help message and exit
  --plotroot PLOTROOT, -p PLOTROOT
                        Root name for output plots.
  --title TITLE, -t TITLE
                        Plot title root.
  --sendercolors SENDERCOLORS, -s SENDERCOLORS
                        Comma separated list of search strings for the sender
                        field. Each will be displayed with a different color.

Sample Output

License

The script is licensed under the GPLv3.