| 1 |
.TH MAILSOUND 1 9/19/98 |
| 2 |
.SH NAME |
| 3 |
Mailsound \- Play sounds when mail arrives |
| 4 |
.SH SYNOPSIS |
| 5 |
.B Mailsound [options] |
| 6 |
.SH DESCRIPTION |
| 7 |
Mailsound is an rplay utility used to play sounds when mail arrives. |
| 8 |
Different sounds can be played depending on the contents of mail |
| 9 |
message headers. Mailsound configuration is stored in the file |
| 10 |
.B ~/.Mailsounds. |
| 11 |
Each line in this file contains a perl5 regular expression followed by rplay |
| 12 |
attributes. See the EXAMPLE section below. |
| 13 |
.P |
| 14 |
Mailsound needs to be invoked upon mail arrival. This can be done in |
| 15 |
many ways, but most users will probably use either a |
| 16 |
.I .forward |
| 17 |
or |
| 18 |
.I .procmailrc |
| 19 |
file. With a |
| 20 |
.I .forward |
| 21 |
file, use something like: |
| 22 |
.nf |
| 23 |
|
| •24 |
\\yourusername, |"/usr/local/bin/Mailsound \-h soundhostname" |
| 25 |
|
| 26 |
.fi |
| 27 |
For |
| 28 |
.I .procmailrc |
| 29 |
use: |
| 30 |
.nf |
| 31 |
|
| 32 |
:0 ic |
| •33 |
| /usr/local/bin/Mailsound \-h doctor:doit |
| 34 |
|
| 35 |
.fi |
| 36 |
.SH OPTIONS |
| 37 |
.TP |
| 38 |
.I \-\-host=hostname[:hostname ...] |
| •39 |
Play sounds on the specified host(s). |
| 40 |
.TP |
| 41 |
.I \-\-file=filename |
| 42 |
Specify an alternate configuration file. |
| 43 |
.TP |
| 44 |
.I \-\-volume=NUMBER |
| 45 |
Default volume for all sounds. |
| 46 |
.TP |
| 47 |
.I \-\-priority=NUMBER |
| 48 |
Default priority for all sounds. |
| 49 |
.SH EXAMPLE |
| 50 |
.nf |
| 51 |
## Mailing lists |
| 52 |
^(To|Cc):.*ding.* sound=ding.au volume=50 |
| 53 |
^(To|Cc):.*xpilot.* sound=wheres_the_kaboom.au |
| 54 |
^(To|Cc):.*gopher.* sound=monkey-3.au |
| 55 |
^(To|Cc):.*fvwm.* sound=ploop.au |
| 56 |
|
| 57 |
^From root@?.* sound=bogus.au priority=255 |
| 58 |
^From news@?.* sound=beep.au |
| 59 |
|
| 60 |
## Everything else... |
| 61 |
.* sound=Thank_you_very_much.au |
| 62 |
.SH FILES |
| 63 |
.B ~/.Mailsounds |