17 · 07

Gmail-Notify improvements and a modified behavior

Gmail-notify is a small program written in Python. I use it because it is light and it just do what I want. I am a regular user of the firefox extension gmail-notifyer and I was uncomfortable with the Gmail-notify behavior, so I wrote a little patch to make it more like I want. I also added the possibility to execute a command when a new message arrive. I use it to play a sound (aplay ~/sounds/mail.wav). I don't know your habits but maybe you could enjoy my modifications. Here is a small description:
  • A click on the event box close it.
  • A click on tray icon open the mailbox.
  • Mailbox is now open as HTTPS.
  • A command can be executed when a new mail is received (like playing a sound).
To use my modifications, download my patch, and apply it to gmail-notify-1.6.1.1:
wget http://garr.dl.sourceforge.net/sourceforge/gmail-notify/gmail-notify-1.6.1.1.tar.gz
wget http://zaphod.eu/pub/gmail-notify-1.6.1.1.patch tar zxvf gmail-notify-1.6.1.1.tar.gz
(cd gmail-notify ; patch -p1 < ../gmail-notify-1.6.1.1.patch)
rm gmail-notify-1.6.1.1.tar.gz
Then run gmail-notify.
gmail-notify/notifier.py