jump to navigation

Analyze and visualize your Gmail-ing trends August 26, 2008

Posted by askgel in Installation, Linux.
Tags: , , , ,
trackback

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:

1. 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.

2. 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.

1. Install Cheetah, an open source template engine, and code generation tool. Shoot the following command to install Cheetah:

$ sudo apt-get install python-cheetah

2. 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

3. Untar the mail-trends tar’d file by issuing:

$ tar xfv mail-trends-20080326.tar.gz

You will get a folder called mail-trends

4. 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=yourusername@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.

Advertisements

Comments»

1. VGH - September 24, 2008

Tried this and got the following error.

[2008-09-25 00:33:37,479] Initializing
Traceback (most recent call last):
File “main.py”, line 249, in
opts = GetOptsMap()
File “main.py”, line 35, in GetOptsMap
assert “username” in opts_map
AssertionError

2. admin - September 24, 2008

@VGH make sure you have supplied your full gmail address: yourusername@gmail.com

3. VGH - September 25, 2008

thanks. seems to work.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: