1 Scripts to Count Messages from Google
2 ==============================================================
4 Author: Benjamin Mako Hill (mako@atdot.cc)
5 License: GNU General Public License version 3 or any later version
6 Code: http://projects.mako.cc/source/?p=gmail-maildir-counter
8 I wrote this code in order to do the analysis I posted in this blog
11 http://mako.cc/copyrighteous/google-has-most-of-my-email-because-it-has-all-of-yours
13 If you want to send me patches or bugfixes, details on how to do that
16 http://projects.mako.cc/source/
18 1. Parse your mailbox using the count_gmail.py script
19 --------------------------------------------------------------
21 I ran the script like this:
23 $ python count_gmail.py ~/incoming/mail/default > mail_metadata.tsv
25 2. Parse the output using analysis.R
26 --------------------------------------------------------------
28 I run R interactively in Emacs/ESS but you might want to use RStudio
29 if you are not familiar with Emacs. Alternatively, if you also output
30 into mail_metadata.tsv, you can just run:
32 $ R --no-save < analysis.R
34 It will create the two PDFs files of graphs for you in the local directory.
36 The I converted the PDFs into PNGs with imagemagick's mogrify:
38 $ mogrify -format png *pdf