Author: Michael Tom-Wing
Description: A Gmail Notifier that makes use of libnotify and the Indicator Applet in GNOME.
License: GPL
Dependencies: python-notify, python-indicate, python-feedparser
Distributions: Tested on Ubuntu 10.04
Screenshots:
Documentation: Yes
Download: v1.7.1
Apt Repo:
- deb http://repo.ahadiel.org/apt karmic/
- deb http://repo.ahadiel.org/apt lucid/
Package: gmail-notifier
Note: Karmic users should use the provided apt repository instead of manually installing the .deb.
Changelog:
v1.7.1:
- Added support for Google Apps email accounts.
- Email subject automatically limited to 30 characters.
v1.7:
- Fixed initial compatibility issues with Ubuntu Lucid’s new python-indicate.
- Note: The version for Lucid will almost always be newer than Karmic.
v1.6.1:
- Fixed gmail-notifier.py from closing if there is no valid internet connection.
v1.6:
- Added a configuration GUI.
- Added a way to skip the initial timeout.
v1.5.2:
- Fixed a few regressions.
- Increased the timeout before the initial mail check.
v1.5:
- Minor code changes.
v1.4:
- Moved standalone debs to apt repo (see docs)
- Interval input format has been changed
- ie. 1d20m30s ~ 1 day, 20mins, 30secs
v1.3:
- Re-implemented Gnome Keyring support
- Switched to .deb releases
v1.2:
- Preliminary support for listing emails within the Indicator-Applet
v1.1:
- Support for storing email and password in the Gnome Keyring
v1.0:
- Initial release


Pingback: You have mail | Ahadiel.org
Pingback: Gmail Notifier + gnome-keyring = v1.1 | Ahadiel.org
Pingback: Gmail Notifier – v1.2 | Ahadiel.org
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5
Bit of a regression in my opinion for 1.5. Occasionally I leave emails marked as unread. Now the indicator-applet icon is always darkened unless there are no new unread emails.
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.5) Gecko/20091109 Linux Mint/8 (Helena) Firefox/3.5.5
Really nice , i’m glad to use it since one week.
1.5.2 gave me a bug : no notifications at all but if i click the icon , the mails are listed there.
Perhaps my installation , i’ll check that …
Just 2 things :
- is it possible to add the default “notification-message-email.svg” icon in the notification bubble ? I think it would be nice since when the bubble appear , sometimes , you don’t have the time to read what program notify you but your eyes have the time to quickly check if it’s a mail or another thing perhaps less important.
- could you add a fonction to open the default mailer program ? ( with a choice for example at first start : use default program or use webmail with a simple checkbox )
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.260.0 Safari/532.5
Hrm, I’ll have to troubleshoot it later this week when I get some time.
I’ll also see what I can do about your 2 suggestions. The first one will be included in the next release, but I’m not much of a GTK programmer so the second might take some time.
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.260.0 Safari/532.5
“1.5.2 gave me a bug : no notifications at all but if i click the icon , the mails are listed there.”
This is the way it’s supposed to be (until I find the signal that’s triggered when a user clicks the indicator-applet). If an unread email is still unread by the next email check, then it’s alert flag is False, and therefore does not trigger the indicator-applet to light up.
Pingback: Setting up Ubuntu 9.10 | Tombuntu
Pingback: Setting up Ubuntu 9.10 | TuxWire : The Linux Blog
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.7 (KHTML, like Gecko) Chrome/4.0.270.0 Safari/532.7
Where’s the source? If is not just me that have missed a link somewhere, I would like to request that you publish the source somewhere or send it to me in an email. Bonus points if you put up a repo
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0
Well, considering it’s just a python script… the source is in “/usr/bin/gmail-notifier.py”.
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5
better just with multiple accounts and password encryption
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.6 (KHTML, like Gecko) Chrome/4.0.267.0 Safari/532.6
Assuming the Gnome Keyring encrypts anything stored within it, the password is already being encrypted.
Pingback: GMail Notifier « Rob Garth - Mildly Useful Stuff
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8
Please, move the download link to have a greater visibility
in the page, ie. to the top. So that people can click it right when
they come here. That’s anyway the main “meat” they are looking for. Thank you very much for an excellent software!!! Cheers,
Repe
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
I moved it up a bit on the page.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2) Gecko/20100124 (CK-IBM) Firefox/3.6 (Swiftfox) GTB7.0
I’m running 1.6.1 on Karmic but I find that sometimes it gets “stuck” so that it no longer updates… for example today I checked the menu and the latest items it showed were 2 days old (I suspend/resume my machine between locations a lot).
Opera/9.80 (Windows NT 6.1; U; en) Presto/2.5.21 Version/10.50
I think this is probably due to the mail checking thread not reactivating when you resume your computer.
I’ll try and work up an automatic solution, or at least add a reset button.
Pingback: Forget Me Not » Indicator-applet i powiadamianie o nowej poczcie GMail
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.5 Safari/532.9
THX !!
GooD JoB
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2) Gecko/20100124 (CK-IBM) Firefox/3.6 (Swiftfox) GTB7.0
Tiny weirdness – seems like the Close button on the About dialog doesn’t work? I have to click the close window control on the titlebar.
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9
I get that on the About dialog as well… also, it would be awesome if the notifier would start with system start. Amazing job, thanks!
Pingback: Setting up Ubuntu 9.10 | Dicolek ! Edutainment For You
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9
Hi,
This is great work, thank you. If the first 30 seconds pause is to avoid the check while being disconnected, you can try to rely on NetworkManager over DBus using this kind of code (it works in a script of mine)
import dbus
import dbus.mainloop.glib
def state_changed_signal_handler(s):
state = s #update connection state
update()
def update():
if state != 3: #if the connection is inactive
#Do not update
else
#Update
if __name__ == ‘__main__’:
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
bus = dbus.SystemBus()
nm = bus.get_object(“org.freedesktop.NetworkManager”, \
“/org/freedesktop/NetworkManager”)
nm.connect_to_signal(“StateChanged”,state_changed_signal_handler,\
dbus_interface=”org.freedesktop.NetworkManager”)
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5
Thank you Elie
I’ll be sure to integrate your code once I have some free time.
2nd wave of midterms is almost over
Pingback: Setting up Ubuntu 9.10 « newt
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2
it crashes here on ubuntu 10.04 when I click the “Gmail Notifier” menu entry, or when I click a mail.
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100409 Ubuntu/10.04 (lucid) Firefox/3.6.3
im getting the same crash as kk here under lucid lynx
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.371.0 Safari/533.4
I haven’t had a chance to test it out on 10.04 yet. Hopefully in a couple of weeks I’ll have some time to upgrade to 10.04, and make the appropriate changes.
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.5 (KHTML, like Gecko) Chrome/5.0.374.0 Safari/533.5
It looks like, number of arguments for signals “server-display” and “user-display” have changed.
3 arguments are passed to them, while your “clicked” functions accept only 2.
Pingback: Cosa fare dopo l’installazione di Ubuntu 10.04 Lucid Lynx? Guida completa « Jack's Ubuntu
Pingback: Cosa fare dopo l’installazione di Ubuntu 10.04 Lucid Lynx? Guida completa « Jack's Ubuntu
Pingback: Setting up Ubuntu 10.04 LTS | Tombuntu
Pingback: 推荐一款 Gmail Notifier for Lucid » 嘉佑中文博客
Pingback: GMail Notifier puts GMail in your Messaging Menu - A Collection of Latest Happening in Technology Field
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2
Suggestion: In Lucid, I want the colour to go back to “normal” from “green” when I click on the messaging-menu. That is, after I see/scan-through the subjects of the e-mail via the messaging-menu, I want the colour to go back to normal (even if they are unread). Otherwise, it makes it diffcult to interpret the indicator-colour (I get my empathy-chats indication from there, and it is not possible to differentiate if its just gmail-notifier at work or have new chats from empathy)
Pingback: Ubuntu 10.04 “Lucid Lynx” vs. RIP MS Courier vs. Apple&Adobe | Firefly-Nexus
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
Nice thingie. Good idea totally. My findings:
1. clicking on a mail brings up the errorneus URL: https://mail.google.com/mail/help/signed_out.html
2. showing green mail icon as long as there is unread mail is maybe not the best solution. I permanently have some unread mails -> always green -> not good. Green icon should reset when . Don’t just go for unread, I guess.
thanks for the app!
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5
1) I’ve never had this happen to me before.
2) I’d prefer to have it reset whenever one clicks the envelope, but I haven’t been able to find a hook for that event.
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.5.24 Version/10.53
I’ve been using this for a couple days now along side another Gmail indicator and I’ve developed a few suggestions for your Gmail Notifier. I hope you find them helpful and not too critical.
The indicator I’m comparing yours to was covered here (as I’m sure you’ve seen):
http://www.omgubuntu.co.uk/2010/05/gmail-notifier-puts-gmail-in-your.html
1. Long email subjects result in messy menus: http://is.gd/bTc19
2. I prefer the ability to be audibly notified along with a visual notification. The other Gmail indicator does a great job of this that I think yours could also handle.
3. While your preferences window gets the job done, I really like the credentials check and other options of the other indicator.
I’d like to help out and not just point out shortcoming, so let me know where I can help. I actually prefer your indicator more cause the subject line and time since sent is great!
Thanks.
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.5.24 Version/10.53
Just noticed you’re using my wp-useragent plugin. Cool.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5
It’s a very cool plugin
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5
No offense taken. Thanks for the feedback =D
I’ll be sure to implement at least two of those suggestions in my next release.
Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.5.24 Version/10.53
Awesome! I’ve been toying around with adding sound and a couple other modifications such as descriptive popup notifications so 3 new unread emails are popups at a time.
Currently it shows the oldest 3, which I don’t like so much (prefer newest 3), but its just a quick hack.
I also sped up the initial check, but I was toying with adding a trial/error loop to attempt every n-seconds until it succeeds.
I was toying with adding settings for these, but didn’t have the time. So for now, if you place an audio file in your Home directory and name it “sound” with no filetype then it will play when new mail arrives. Ideally this would be located in a config/settings folder, but I couldn’t find one for Gmail-Notifier.
I got the documentation from:
http://pygstdocs.berlios.de/pygst-tutorial/pipeline.html
Here’s the modified version thus far..
http://kyleabaker.pastebin.com/UEeRNqV3
Mozilla/5.0 (X11; U; Linux x86_64; it; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
Great software, I really like it!
Thank you very much!
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5
Thanks
Mozilla/5.0 (X11; U; Linux; en-us) AppleWebKit/531+ (KHTML, like Gecko) Safari/531.2+ Midori/0.2
Hi great applet
Could you give steps as to how to change the icon for this applet?
I would like to use the original Gmail icon for both the menu item under Application > Internet as well as the icon in the messaging menu.
Thanks!
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5
You should be able to edit the icon in /usr/share/applications/gmail-notifier.desktop.
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.29 Safari/533.4
hey,
all downloadlinks (except 1.0, 1.1, 1.2) are broken
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5
Links should be working now.
I migrated to a dedicated server, and my DNS seems to just now be propagating.
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
Nice app, thank you. It never works as a start-up application though. I have to run it manually (Ubuntu 10.04). If that can be fixed, it would be great.
I second the idea for clearing the green icon once I’ve looked in the menu. Otherwise I have no choice but to check my mail to clear it, and that defeats the purpose of having such a tool.
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.7 Safari/533.2
How are you adding it as a start-up application? I just tested it and it works fine (10.04).
This is what I originally intended to do, but I couldn’t find any proper documentation for python-indicate and AFAIK there is no hook for clicking the envelope.
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
I added it to start-up applications as:
gmail-notifier.py
A few others on the blog that led me to you have the same problem.
I understand the documentation problem
I tried to get into GTK a few years ago …
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4
Do you have your keyring set to unlock automatically when you login?
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
No, I’m using autologin so I need the keyring locked.
I just tried a reboot with autologin disabled and your app is in the notification menu now – so it’s only a problem when using autologin.
Pingback: Ubuntu 10.04 Lucid Lynx – VooDooStevie.NET
Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
Hey very good app, thank you!
Only a question, is it possible to assign a sound to the receipt of a new message? If yes, how can I do?
Chees from Italy
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4
Nice util! But I have entries duplicated when I click it twice – how can I remove extra entry from indicator applet?
Also it checks mail for custom gmail domain but when I’m clicking to message it uses regular gmail url and doesn’t work.
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2
Hi! Your application is great, but there is something that should me modified. If you receive a mail with a long subject, when you open the Message Menu, the menu it’s going to be huge. I don’t think this is good. I leave you a screenshot: http://ubuntuone.com/p/45P/
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2
Maybe you could give the user two options. To display the whole subject like it does right now, or just the first part if it’s too long. It’s always better if you can choose. Thanks in advance!
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4
Tomorrow’s 1.7.1 release will automatically cut subject lines down to 30 characters. Sooner or later I’ll add an option to the setting’s UI.
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2
Hi! I think that the best solution will be if you leave the subject with 30 characters max, and if you add something that when leaving the mouse pointer over the mail subject at the Message Menu a “little notification” shows the complete mail subject. I don’t know if it’s possible… but I think it’s a good idea.
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
As far as I know this is not possible. I haven’t come across any callback interfaces for the “mouse-over-indicator” event.
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2
Great application.
Is it possible to have a version that points to https://mail.google.com/a/mydomain.com/# for Google Apps users.
It integrates perfectly if you click the link on a new mail but directs you to gmail.com if you click the “Gmail Notifier” heading.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4
Added in version 1.7.1.
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2
Great Application! But I think there are two little bugs. When I open “About” at the Gmail Notifier – Settings the close button doesn’t work, and the version number it’s not correct. I’m using 1.7.1 and the About dialog says 1.6. Thank you for doing this application!
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4
Yeah, I keep forgetting to change the About version with each release.
As for the close button on the About popup… I still haven’t figured out why it doesn’t work. The callback seems to be there, but it doesn’t get triggered.
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4
Can sound be added!? I’d like to hear a little notification sound when new mail arrives…
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.29 Safari/533.4
hi,
I use 2 min as check interval, so if I’m not connected to internet it notifies “unable to connect” every 2 mins, which is quite annoying.. is it possible to add an option?
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.53 Safari/533.4
This will be resolved in the next release.
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.1 (KHTML, like Gecko) Chrome/6.0.420.0 Safari/534.1
muye buena aplicación felicidad
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4
doesn’t work anymore in ubuntu 10.04
kk33:/$ gmail-notifier.py
Traceback (most recent call last):
File “/usr/bin/gmail-notifier.py”, line 170, in
PASSWORD = gkey.getPassword()
File “/usr/bin/gmail-notifier.py”, line 149, in getPassword
secret = gnomekeyring.item_get_info_sync(self.keyring, auth_token).get_secret()
gnomekeyring.BadArgumentsError
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4
Hi,
first of all, it’s really a great job you did on this notifier! The idea of integrating it with the indicator-applet is both neat and comfortable.
However, for me it lacked one single feature, which was checking not only the inbox, but also some labels for the incoming mail. I don’t know if there are many gmail users who use it like I do, which is filtering ie. facebook mail (which sends A LOT of unnecessary stuff) to move it to one particular label and to skip the inbox, but I think that this is quite important asset and that it may come in handy for some people.
If you want, I can send you the source. I just thought it would be nice to share with the others;)
br,
Maciej
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4
It would be nice if it could use IMAP idle to get instant notification, and it could fall back on the http mode when we can’t get an imap connection (at school or work).
Is your project on github/lauchpad?
Pingback: Уведомления GMail в Ubuntu Messaging Menu » Убунтология
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4
Hi !
How can I close one of gmail-notifier if I opened twice ? I put a screenshot here http://www.box.net/shared/pcpzgl2uts . I set to open at startup and then by mistake a clicked again gmail-notifier.py and have what is in the image:D . Maybe you can say or make a update.
Regards,
Daniel B.
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
hi there,
I am interested on this Gmail Notifier
how to install through terminal?