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 Home: http://projects.mako.cc/
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 1. Parse your mailbox using the count_gmail.py script
14 --------------------------------------------------------------
16 I ran the script like this:
18 $ python count_gmail.py ~/incoming/mail/default > mail_metadata.tsv
20 2. Parse the output using analysis.R
21 --------------------------------------------------------------
23 I run R interactively in Emacs/ESS but you might want to use RStudio
24 if you are not familiar with Emacs. Alternatively, if you also output
25 into mail_metadata.tsv, you can just run:
27 $ R --no-save < analysis.R
29 It will create the two PDFs files of graphs for you in the local directory.
31 The I converted the PDFs into PNGs with imagemagick's mogrify:
33 $ mogrify -format png *pdf