[Sussex] Procmail Recipies
Matthew Macdonald-Wallace
matthew at truthisfreedom.org.uk
Sat Dec 6 13:56:40 UTC 2003
All,
I'm trying to automate playing of mp3s via email to see what procmail
can do.
My files look like this:
.procmailrc
:0
| $FORMAIL -tzxSubject: | /home/auto/play.pl
/home/auto/play.pl
#!/usr/bin/perl
$playlist = <STDIN>;
system("/usr/bin/mplayer $playlist");
If I do
auto at localhost auto$ echo chill | ./play.pl
it works fine, and running formail strips the correct subject (chill)
out of my email, but somewhere its not working!
the file "chill" is an m3u playlist without an extension, and works in
both xmms and mplayer.
All help appreciated,
Matt
--
+----------------------------------+
|Matthew Macdonald-Wallace |
|The Truth Will Set you Free |
|http://www.truthisfreedom.org.uk/ |
+----------------------------------+
"The senate needs to leave enough money in the proposed budget to not
only reduce all marginal rates, but to eliminate the death tax, so that
people who build up assets are able to transfer them from one generation
to the next, regardless of a person's race." George W. Bush April 5,
2001 Washington, D.C.
More information about the Sussex
mailing list