Registered Member
|
I'm trying to find an "unread email" notifier for either the system tray or the panel. However, I've been unsuccessful. A few of them (mail-notification and gnubiff) don't work in the new Plasma 5 system tray, requiring a separate stand-alone tray (e.g. stalonetray or wmsystemtray). kbiff hasn't been ported to Plasma 5. trysterobiff seems the most promising, but I'm not comfortable leaving my passwords in plaintext (although this might be the only option). Are there any other options?
Last edited by sparhawk on Sun Oct 04, 2015 11:11 pm, edited 1 time in total.
|
Registered Member
|
I managed to roll my own using imapnotify and awesome widgets. The former allows you to trigger a script on new mail, using IMAP IDLE. The latter is a plasmoid that allows you to display the text output of a script.
Hence, when there is new mail, imapnotify writes to a temporary file, and awesome widget will show the contents. To make the "notification" disappear, you can script the deletion of this file. I'm using mutt with maildir, so removing the temporary file is relatively straightforward. When new mail comes in, imapnotify triggers a script which syncs my mailbox, then counts the number of unread emails in ~/.mail/*/Inbox/new . It prints this total to the temporary file, which awesome widget displays. I aliased mutt to run this same script after closing. Hence, if there are no files in ~/.mail/*/Inbox/new, the temporary file is deleted, and awesomewidget displays nothing. It's a bit of a kludge, but it works quite well. I'm not sure how you could trigger the deletion of this file in a general case. Perhaps imapnotify could trigger a loop that could constantly check the presence of new mail and delete the file if there is none. |
Registered Member
|
Is there an easier solution available by now?
|
Registered Member
|
I'm still using my hack. I'm relatively happy with it. A bit fiddly to set up, but haven't had to change it for over three years since the previous post. FWIW this is code I'm using. At ~/.local/bin/get_new_mail_count:
Then use Awesome Widgets to point to this script. |
Registered Member
|
Thank you sparhawk very much! ... also for sharing your script! ...
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]