Reformatted excerpts from Henri Ducrocq's message of 2009-05-13:
> (First of alli: Thanks William for that very gorgeous piece of
> software!)

Glad you find it useful!

> I would like to use mail-notification (or an equivalent) to display
> the status of my inbox in my system tray, I mean the number of unread
> emails.  But of course that program isn't aware of what messages have
> been read inside sup.

Sounds great. I'd love to have that too.

> What can I do to fix this? I thought about having the after-poll hook
> dump all new messages into a dummy mbox file, which would be monitored
> by mail-notification..  But there must be a simpler way?

Having now read the mail-notification manpage... the problem is
mail-notification. It should provide a way for other apps to signal a
notification (the whole Unix philosophy of decomposability, etc.) but it
does not.

Periodically dumping all new messages into a dummy mbox file is a
terrible idea, but I think that's your only Sup-specific option.
Patching mail-notification is a better idea, though that may not be what
you want to hear.

If you're using a recent Gnome, you have some other options. If you're
running notification-daemon (e.g. Ubuntu 9.04), you can install the
libnotify-bin package and having the after-poll hook call notify-bin on
new email. (Not quite the same.) You can also look at the
indicator-applet: libindicate also has Python bindings, so you could
install python-indicate and write a python short program to use that.
-- 
William <[email protected]>
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to