Analyze and visualize your Gmail-ing trends
Want to know who sends you the emails most often, or which is the year/month/day/hour you receive the emails most? With the help of a handy program called mail-trends you can easily visualize your Gmail-ing activities. Though it is a command line program but the output is a graphically rich interactive html file. And take my words, the command to launch the program is very simple.
Requirements:
The only requirement for mail-trends is Python but this tutorial is for any version of Ubuntu. With little bit of more work, it should work pretty well with any flavor of Linux, Windows, or Mac.
You have got a Gmail or Google Apps mail account and have enabled IMAP. Enable IMAP from Settings>Forwarding and POP/IMAP>Enable IMAP
Now, fire up the terminal window and get ready for some simple commands:
Python always comes shipped with Ubuntu, so you don’t need to worry about it.
- Install Cheetah, an open source template engine, and code generation tool. Shoot the following command to install Cheetah:
$ sudo apt-get install python-cheetah
- Either get mail-trends tar file from the terminal window…
$ wget http://mail-trends.googlecode.com/files/mail-trends-20080326.tar.gz
OR visit http://mail-trends.googlecode.com to download the stable version. Also, those of you who prefer to get your hands on the latest version can download the latest code from the Subversion by issuing: $ svn checkout http://mail-trends.googlecode.com/svn/trunk/ mail-trends
- Untar the mail-trends tar’d file by issuing:
$ tar xfv mail-trends-20080326.tar.gz
You will get a folder called mail-trends
- Get inside mail-trends directory:
$ cd mail-trends
5. Issue the following command to analyze your Gmail
$ python main.py --server=imap.gmail.com --use_ssl --username=**_yourgmailusername_@**gmail.com --me=_**y****ourusername**_@gmail.com --skip_labels
It will then ask for your Gmail password.
If everything goes right, it will create a directory out inside the mail-trends directory and creates an index.html file and three other files inside the out directory.
Fire up the index.html file to open an interactive visualization of your Gmails.