Archive - Jul 25, 2006


evolution email notification

I use Evolution as my primary email client, and one of the major issues I have with it is the lack of an email notifier. There was a GNOME bounty once for this, and the code published as the solution has made it to Evolution using DBUS, but it does not solve my problem: What will I do with a stupid DBUS notification? I want my visual notification!

Now Ubuntu ships with spiffy DBUS notification bubble support. Why not use that?

This is where my newbie python skills come in: presenting to you my 20-line Evolution Mail Notification Tool!:

#!/usr/bin/env python

import dbus
import dbus.glib
import gobject

bus = dbus.SessionBus()
notify_service = bus.get_object(‘org.freedesktop.Notifications’, ‘/org/freedesktop/Notifications’)
notify_interface = dbus.Interface(notify_service, ‘org.freedesktop.Notifications’)

def newmail_handler(msg, msg2): notify_interface.Notify(“evo-notify”, 0, ‘’, “New Email”, msg, [], {}, -1)

bus.add_signal_receiver(newmail_handler, dbus_interface = “org.gnome.evolution.mail.dbus.Signal”, signal_name = “Newmail”)

loop = gobject.MainLoop()

How to run this:
First import, glib, dbus, and all the things for python. Then save the python code in a file, say Then open a terminal and type python Now, whenever you get an email, a pop-up notfication will appear!

To do: For the UI, do something similar to the Gmail notifier plugin for the notification. Also, patch the enotify plugin to send the details of the new emails as well, so that they can be shown in the notification.

(update: updated the newmail_handler to the new interface. Thanks, Vikas!)


malgudi days

Malgudi Days is back! I wonder if the theme song is still the same… it’s one of my favourite things to play on the flute.


google and the phone company

AT&T Labs versus Google Labs. Many of the faculty here boast of having “worked for a phone company” at some point of time in their life. I guess the next generation will boast of having worked for an “html shop”. I’d like to point out that as CS research matures, there are many more people who would like to put money into it today, as opposed to a single phone company in days of yore. Many other dotcoms(Y!Research, MSNSearchLabs, Amazon), medicine companies(Pfizer), have a huge, increasing need for CS, and hence are making huge investments towards furthering research as well. While it breaks the “Cathedral” paradigm into a more “Bazaar”-like scene, this means more jobs, more money, and most importantly, much, much more work done in the area than in the past.

| |