983163d43523a2d1307a4433ab2479ba3ee7c65c
[gmail-maildir-counter] / README
1 Scripts to Count Messages from Google
2 ==============================================================
3
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/
7
8 I wrote this code in order to do the analysis I posted in this blog
9 post:
10
11 http://mako.cc/copyrighteous/google-has-most-of-my-email-because-it-has-all-of-yours
12
13 1. Parse your mailbox using the count_gmail.py script
14 --------------------------------------------------------------
15
16 I ran the script like this:
17
18 $ python count_gmail.py ~/incoming/mail/default > mail_metadata.tsv
19
20 2. Parse the output using analysis.R
21 --------------------------------------------------------------
22
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:
26
27 $ R --no-save < analysis.R
28
29 It will create the two PDFs files of graphs for you in the local directory.
30
31 The I converted the PDFs into PNGs with imagemagick's mogrify:
32
33 $ mogrify -format png *pdf

Benjamin Mako Hill || Want to submit a patch?