Hello, On Tue, 21 Aug 2018, Michael Fischer wrote:
I've got the basic recipe working, e.g.
:0 * ^from:.*foo@gmail.com.* { :0c: ${MAILDIR}/INBOX :0ahi | cvlc -I default -R --gain 8.0 ${HOME}/ringtones/cash_register.mp3 }
(pretty much copy-pasted from examples on the web).
However, while the `cvlc` commmand works fine from the command line, when run from procmail, I keep getting
[000055a9e1d96468] core audio output error: Audio output failed [000055a9e1d96468] core audio output error: The audio device "default" could not be used: Device or resource busy. [000055a9e1d96468] core audio output error: module not functional [00007fbddcc0ca08] core decoder error: failed to create audio output ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
in the procmail log
You've got a permission problem on /dev/snd/*. Just tested with: ==== :0 { :0fwc | /bin/sh -c 'formail -A "X-UID: $(id)"' :0wc | ogg123 /usr/share/sounds/KDE-Im-Message-In.ogg # :0 # inbox } ==== As it turns out, via procmail, you _ONLY_ have your primary group, as you can see by the "X-UID: " header inserted via formail, e.g. "users". But /dev/snd/* are 'crw-rw---- root.audio'... And not "root.users". Depending on your system: a) esp. if it's a single-user box, think about changing the group of /dev/snd/* b) if not, using sudo with "NOPASSWD" for the one exact command (for that (group of) user(s)) might be the easiest. HTH, -dnh -- Real programmers use chmod +x /dev/random and cross their fingers -- Comment found in a vi/emacs flamewar on slashdot. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org