wavexx / gnus-desktop-notify.el Goto Github PK
View Code? Open in Web Editor NEWGnus Desktop Notification global minor mode
Home Page: https://www.thregr.org/~wavexx/software/gnus-desktop-notify.el/
Gnus Desktop Notification global minor mode
Home Page: https://www.thregr.org/~wavexx/software/gnus-desktop-notify.el/
This may go beyond FreeBSD, but it's what I use so all I can report for here.
Basic setup:
(require 'gnus-desktop-notify)
(gnus-desktop-notify-mode)
(gnus-demon-add-scanmail)
Results in no notifications.
Other applications such as ERC have no problem sending desktop notifications from emacs-->dunst with dbus session and require no further configuration.
Workaround:
Use the mac-setup and specify notify-send instead of growlnotify,
(require 'gnus-desktop-notify)
(setq gnus-desktop-notify-function 'gnus-desktop-notify-exec
gnus-desktop-notify-exec-program "notify-send")
(gnus-desktop-notify-mode)
(gnus-demon-add-scanmail)
Not sure why this is. Hope it might help somebody.
FreeBSD 11.1 / spacemacs / gmail / imap
Hi, after several hours today, I have come to conclusion:
Gnus-desktop-notify works as expected, displaying notifications for all groups by default, no problems.
Gnus-desktop-notify will show notifications for explicitly selected groups with the following configuration, no problems:
;; Daemon to fetch email every ~5 mins (checks while emacs is idle)
(gnus-demon-add-handler 'gnus-demon-scan-news 5 t)
;; Use notify-send for desktop notifications on new mail
(require 'gnus-desktop-notify)
(setq gnus-desktop-notify-function 'gnus-desktop-notify-exec
gnus-desktop-notify-exec-program "notify-send")
(gnus-desktop-notify-mode)
(gnus-demon-add-scanmail)
;; Only send desktop notifications for groups selected
;; by pressing 'G c' on the group and then checking the relevant notification box setting.
(setq gnus-desktop-notify-groups 'gnus-desktop-notify-explicit)
Caveats: I am unable to maintain all of my settings within gnus.el, and have to manually reconfigure within gnus via 'G c' for each group that I want to receive desktop notifications. It would be nice to set notification groups within gnus.el.
3. Gnus-desktop-notify feature to explicitly set notifiction groups from within gnus.el has no effect:
The following eg. having both a group named "INBOX" and a group named "00.FAMILY" does not work:
(setq gnus-desktop-notify-groups 'gnus-desktop-notify-explicit)
(setq gnus-parameters
'(("INBOX" (group-notify t))
("00.FAMILY" (group-notify t))))
Expected result: Receive desktop notifications for only my INBOX group and my 00.FAMILY group, but no other groups.
Actual result: Received zero notifications for any group.
It would be nice if we could find a way to get this working, I'd prefer to set my notification groups solely within gnus.el and not have to fiddle within gnus group settings via "G c"
If you would like me to test anything further in helping debug this, or if I have made an elementary mistake, please let me know. I am glad to have a desktop-notifier for my email. Thank You.
Hi, it's likely that the function `gnus-last-element' will go away at some point; I see you've got a call to that in your code. Obviously this won't be an issue for quite a while, but you might as well replace it with (car (last ...)), which is more efficient anyway.
I'll be moving my source repositories to GitLab (https://gitlab.com/wavexx/) during the next few days.
I've been waiting to do this for a long time (at least since 2015) but I never switched because of network effects. I'll now use the acquisition news as an excuse to jump the shark!
This repository will be turned into a read-only archive after the migration and effectively become stale.
Since all issues and PR will be mirrored on gitlab, I'll also close all of them in github and reference this issue to make sure this is not going to be ignored.
See you on the other side!
Is there a way to not get alerted about messages that I sent out and copy (marked as read) to one of my groups (gcc)?
This is a very nice package. Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.