Upon receiving message from certain senders I'm trying to have a sound played. This however seems not to work.
When defining a filter for the account as sender contains X, then play sound <selected some playable sound>
It basically stays quiet.
Beep also does not result in sound. If using the mail notification plug-in, generally sound is played fine.
I cannot run a program from the filter as action either or pipe into one. But the later could be more complicated so I'm maybe doing it wrong. But the sound should be fairly simple. Is there something I'm missing?
That issue was like that for me with Ubuntu 18.04, 20.04, mint 19 and currently mint 20, evolution version 3.36.3-0ubuntu1.
On Sat, 2020-08-01 at 22:26 +0200, Gaya wrote:
> Beep also does not result in sound. If using the mail notification
> plug-in, generally sound is played fine.
Evolution uses libcanberra to play sound files. Looking into the code,
trying it here and by adding some error reporting I see the difference
between the filter and the mail notification. The mail notification
uses its own context, while the filter sound uses the gtk context. The
gtk context can have disabled sound in the system Preferences, which
happened to me here. When I enable theme sounds the sound is played
correctly. Similarly with the Beep, it relies on the system sound theme
I'll change the filter sound to not use the gtk context and I'll add
also some debug prints to make debugging easier.
Finished test of message uid:AAMkAGU1ZTeiZWZiLTU2N2YtNDgyMi04MTRjLWM5NGY5NmE5NDdiNgBGAAAAAAA8yS1sIIbdSLGXuyOi0qBqBwD62kfhvwC/S7J7ukSNK0BVAAAACE+BAABNep1ucgLnSIEaPJAntZ8fAAGbvshDAAA= subject:'testsubject' from [hidden email] : Incoming' as MATCHED