This file is indexed.

/usr/share/perl5/MySmtpServer.pm is in dkimproxy 1.4.1-3.

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

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
#!/usr/bin/perl
#
# This file is part of DKIMproxy, an SMTP-proxy implementing DKIM.
# Copyright (c) 2005-2008 Messiah College.
# Written by Jason Long <jlong@messiah.edu>.
#
# This program 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.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA  02110-1301, USA.
#
# This file incorporates work covered by the following copyright and
# permission notice. See the top-level AUTHORS file for more details.
#
#     This code is Copyright (C) 2001 Morgan Stanley Dean Witter, and
#     is distributed according to the terms of the GNU Public License
#     as found at <URL:http://www.fsf.org/copyleft/gpl.html>.
#
#     Written by Bennett Todd <bet@rahul.net>.
#
#
#
#

use strict;
use warnings;

package MySmtpServer;
use base "MSDW::SMTP::Server";

sub new
{
    my $class = shift;
    my %args = @_;
    my $self = bless \%args, $class;
	$self->{"in"} = new IO::Handle;
	$self->{"in"}->fdopen(fileno(STDIN), "r");
	$self->{"out"} = new IO::Handle;
	$self->{"out"}->fdopen(fileno(STDOUT), "w");
	$self->{"out"}->autoflush;
    $self->{"state"} = " accepted";
    return $self;
}

sub getline
{
	my ($self) = @_;
	local $/ = "\015\012";
	$/ = "\n" if ($self->{Translate});

	my $tmp = $self->{"in"}->getline;
	if (not defined $tmp)
	{
		return $tmp;
	}
	if ($self->{debug})
	{
		$self->{debug}->print($tmp);
	}
	$tmp =~ s/\n$/\015\012/ if ($self->{Translate});
	return $tmp;
}

sub print
{
	my ($self, @msg) = @_;
	my @transformed = $self->{Translate} ?
		( map { s/\015\012$/\n/; $_ } @msg ) : (@msg);
	$self->{debug}->print(@transformed) if defined $self->{debug};
	return $self->{"out"}->print(@transformed);
}

1;