kspi / notifymuch Goto Github PK
View Code? Open in Web Editor NEWDisplay desktop notifications for unread mail in notmuch database
Display desktop notifications for unread mail in notmuch database
Notifymuch has to be run using at least python3.2 since the calls to os.makedir
use the argument exist_ok
which was only introduced in python3.2. During the install process, however, distutils changes the shebang in the notifymuch executable from
#!/usr/bin/env python3
to
#!/usr/bin/python
When this executable is then called it runs under python2 and crashes upon encountering the call to os.makedirs
.
On running notifymuch in python3 (see #5) the following error occurs:
Traceback (most recent call last):
File "/usr/local/bin/notifymuch", line 33, in <module>
from notifymuch.notification import show_notification
ModuleNotFoundError: No module named 'notifymuch'
For what it's worth, pylint gives 'no-name-in-module' errors for lines 20 (no 'messages') and 33 (no 'notification').
I, for example, would like to only get notifications for things flagged as important.
The repository does not have a license file, which makes it not so easy to package this.
It would be nice for downstream packaging if releases where tagged in git.
Hello, got problem with notification for daemonized processes.
The process
offlineimap systemd service unit
-> offlineimap post sync hook : notmuch new + tags + blabla
-> notmuch post new hook : .mails/.notmuch/hooks/post-new : notifymuch
And I got
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Calling hook: /home/XXXX/bin/offlineimap-postsync
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Hook stdout: No new mail.
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Hook stderr:Unable to init server: Could not connect: Connection refused
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Unable to init server: Could not connect: Connection refused
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: (notifymuch:15689): Gtk-CRITICAL **: 08:07:28.313: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (scre>
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: (notifymuch:15689): GLib-GIO-CRITICAL **: 08:07:28.317: g_application_release: assertion 'application->priv->use>
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Traceback (most recent call last):
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: File "/usr/lib/python3.7/site-packages/notifymuch/notification.py", line 34, in on_startup
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: icon = Gtk.IconTheme.get_default().lookup_icon(
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: AttributeError: 'NoneType' object has no attribute 'lookup_icon'
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Hook return code: 0
notifymuch works well when run from my terminal emulator. I guess the problem is that the process do not have environment variables.
What can I do ?
Ty all, kiss
Title says it all.
Hi,
I started getting the following warning when using notifymuch:
sys:1: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded
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.