{"id":67,"date":"2007-05-06T17:13:36","date_gmt":"2007-05-06T15:13:36","guid":{"rendered":"http:\/\/www.devious.dk\/wordpress\/2007\/05\/06\/new-email-notification-for-evolution-v2\/"},"modified":"2007-05-06T17:13:36","modified_gmt":"2007-05-06T15:13:36","slug":"new-email-notification-for-evolution-v2","status":"publish","type":"post","link":"https:\/\/tommy.winther.nu\/wordpress\/2007\/05\/06\/new-email-notification-for-evolution-v2\/","title":{"rendered":"New email notification for Evolution v2"},"content":{"rendered":"<p>About <a href=\"http:\/\/www.devious.dk\/wordpress\/2006\/05\/23\/new-mail-notification-for-evolution\/\">a year ago<\/a> I posted about a small python script that shows a pop up each time a new email arrives in Evolution.<\/p>\n<p>Since then I&#8217;ve been working on a new version from time to time and with the release of Ubuntu Feisty Fawn it&#8217;s time to release a new version of my code. This time around it creates a status icon and a status icon pop up when new mail arrives as seen below<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.devious.dk\/wordpress\/..\/files\/2007\/05\/new-email-notification-v2.png\" alt=\"New email notification v2\" \/><\/p>\n<p>When the icon or the pop up is clicked the Evolution window receives focus through the use of wmctrl. Unfortunately I have not yet been able to retrieve and display the subject of the email or to select the newly received email when giving focus to Evolution. Perhaps that will happen for v3. Feel free to give me pointers!<\/p>\n<p>The script can be downloaded <a href=\"http:\/\/www.devious.dk\/files\/2007\/05\/evolution-mail-notification-v2.py\">here<\/a>.<\/p>\n<p>To run the script you will needs these packages on Ubuntu:<br \/>\n<code>apt-get install python python-dbus python-notify wmctrl<\/code><\/p>\n<p>If you needs pointers on how to implement something similar I can recommend <a href=\"http:\/\/www.pygtk.org\/docs\/pygtk\/class-gtkstatusicon.html\" target=\"_blank\">Python&#8217;s Status Icon doc<\/a> as well as the <a href=\"http:\/\/www.galago-project.org\/specs\/notification\/0.9\/index.html\" target=\"_blank\">Desktop Notifications Specification<\/a> for communicating with dbus.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>About a year ago I posted about a small python script that shows a pop up each time a new email arrives in Evolution. Since then I&#8217;ve been working on a new version from time to time and with the release of Ubuntu Feisty Fawn it&#8217;s time to release a new version of my code. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-linux","category-code","post-preview"],"_links":{"self":[{"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":0,"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"wp:attachment":[{"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tommy.winther.nu\/wordpress\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}