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:

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.

Related posts:

  1. Gmail+Weather+Beauty right on your Ubuntu desktop
  2. Install Bulky Linux Distribution Without Burning a CD
  3. Unfreezing Your Linux Desktop
  4. Install MS Office 2007 in Linux
  5. Fun with Linux Commands-II - With Power Comes Responsibility

Spread the word, pleasssseee:
Filed under: Installation, Linux, , , , ,

3 Responses

  1. VGH Says:

    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

    [Reply]

    Posted on September 24th, 2008 at 12:04 pm

  2. admin Says:

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

    [Reply]

    Posted on September 24th, 2008 at 2:50 pm

  3. VGH Says:

    thanks. seems to work.

    [Reply]

    Posted on September 25th, 2008 at 11:25 am

Leave a Reply




Comment moderation is enabled. Your comment may take some time to appear.