Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3245  / 2 Years ago, tue, april 5, 2022, 12:18:57

I just started using Xubuntu and I have been pretty impressed so far. I use Thunderbird as my e-mail client and I have been having a tough time getting the email notifications to show up again. They used to show up and then I played with it....



I was playing with the panels and I deleted the panel that comes installed at the top and put a new one in. Now I don't get the transparent box in the corner indicating new mail (I do get the transparent box showing the wifi network I am connected to and when my battery is fully charged and that I can use Guake). I put the notification area plug-in in and did not see any options for thunderbird. There is also a Indicator plug-in but it does not have any options.



I really want that box to show up again indicating that I have a new message because I like to have my docks hidden for more screen real estate.



Any help would be appreciated. Most of the forums that I have read on the subject seem to deal with the sound or Unity, neither of which interest me.


More From » xubuntu

 Answers
3

Well I figured it out,



Its kind of hackish, I wish I could have found a better way but this way works for now.
I am running Xubuntu 13.10 and Mozilla Thunderbird 24.2.0.



What I wanted was for a notification bubble to pop up when I got a new e-mail.



What I did was installed the extention "Fire Tray 0.4.8" in Thunderbird, which showed a Thunderbird icon in the notification area plugin in my panel. Then if you right click the icon and go into the preferences option there is an empty field that says "Launch on count change".



I wrote this python script and "chmod +x"'d it:



#! /usr/bin/python

"""
This program is meant to be launched when
a new message is detected by the mozilla
thunderbird extention "fire tray"
"""

import pynotify
import sys
import getopt

# full path to the icon to be displayed in the notification bubble
ICONPATH = '/usr/share/icons/numix-icon-theme-circle/Numix-Circle/48x48/applications/thunderbird.svg'

# Time out is in seconds
TIMEOUT = 45


def sendmessage(title, message):
pynotify.init("Mail Notify")
notice = pynotify.Notification(title, message, ICONPATH)
notice.set_timeout(TIMEOUT)
notice.show()
return

def cmdLine(argv):
title = 'NEW MESSAGE'
message = '{0} New Messages'.format(argv[0])
sendmessage(title,message)

if __name__ == '__main__':
if (int(sys.argv[1]) > 0):
cmdLine(sys.argv[1])


then I saved it in my /home/user_name/bin/ as "mailnotify"



Then in that field in the preferences of the Fire Tray plugin I typed the full path to the script, in my case, /home/jesse/bin/mailnotify.



Works like a charm now. I wanted to just change a parameter in a config file but oh well.



Hope this helps some one else out.



(The timeout parameter doesn't seem to do much, so if anyone could correct me that would be great)


[#27257] Tuesday, April 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atereress

Total Points: 79
Total Questions: 106
Total Answers: 119

Location: Federated States of Micronesia
Member since Sun, May 16, 2021
3 Years ago
atereress questions
Wed, Aug 4, 21, 03:15, 3 Years ago
Sat, Apr 16, 22, 17:34, 2 Years ago
Thu, Dec 22, 22, 05:56, 1 Year ago
Sun, May 15, 22, 15:59, 2 Years ago
;