This file is indexed.

/usr/bin/Mailsound is in rplay-contrib 3.3.2-15ubuntu1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/perl
#
# $Id: Mailsound,v 1.3 1998/09/19 18:46:41 boyns Exp $
#
# Copyright (C) 1993-98 Mark R. Boyns <boyns@doit.org>
#
# This file is part of rplay.
#
# rplay is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# rplay is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with rplay; see the file COPYING.  If not, write to the
# Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#

unshift (@INC, "/usr/local/lib");

use RPlay;
use Getopt::Long;

if ($ENV{'HOME'})
{
    $opt_file = "$ENV{'HOME'}/.Mailsounds";
}
else
{
    $opt_file = (getpwuid ($<))[7] . "/.Mailsounds";
}

$opt_matches = 1;
$opt_host = "localhost";
$opt_priority = undef;
$opt_volume = undef;
GetOptions ('file=s', 'host=s', 'priority=i', 'volume=i');

@patterns = ();
@attributes = ();
$matches = 0;

$defaults{'priority'} = $opt_priority if defined $opt_priority;
$defaults{'volume'} = $opt_volume if defined $opt_volume;

open (CONF, $opt_file) || die "$opt_file: $!";
while (<CONF>)
{
    next if (/^\#/ || /^[ \t\n]/);
    chop;
    ($pattern, $args) = split (/\t+/);
    push (@patterns, $pattern);
    local (%attrs) = %defaults;
    foreach (split (/[\t ]+/, $args))
    {
	($name, $value) = split ('=');
	$attrs{$name} = $value;
    }
    push (@attributes, \%attrs);
}
close (CONF);

@lines = <STDIN>;
foreach $i (0 .. $#patterns)
{
    foreach (@lines)
    {
	last if /^\n/;
	if (/$patterns[$i]/)
	{
	    $hash_ref = $attributes[$i];
	    %attrs = %$hash_ref;

	    $host = $attrs{'host'};
	    $host = $opt_host unless $host;
	
	    foreach $h (split (':', $host))
	    {
		$rp = new RPlay;
		$rp->connect ($h);
		$rp->play ($hash_ref);
		$rp->disconnect ();
	    }

	    $matches++;
	    last;
	}
    }

    last if $matches == $opt_matches;
}

exit 0;