/usr/share/perl5/Mail/MtPolicyd/VirtualHost.pm is in mtpolicyd 2.02-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 | package Mail::MtPolicyd::VirtualHost;
use Moose;
use namespace::autoclean;
our $VERSION = '2.02'; # VERSION
# ABSTRACT: class for a VirtualHost instance
use Mail::MtPolicyd::PluginChain;
has 'port' => ( is => 'ro', isa => 'Str', required => 1 );
has 'name' => ( is => 'ro', isa => 'Str', required => 1 );
has 'chain' => (
is => 'ro',
isa => 'Mail::MtPolicyd::PluginChain',
required => 1,
handles => [ 'run' ],
);
sub new_from_config {
my ( $class, $port, $config ) = @_;
if( ! defined $config->{'Plugin'} ) {
die('no <Plugin> defined for <VirtualHost> on port '.$port.'!');
}
my $vhost = $class->new(
'port' => $port,
'name' => $config->{'name'},
'chain' => Mail::MtPolicyd::PluginChain->new_from_config(
$config->{'name'},
$config->{'Plugin'}
),
);
return $vhost;
}
sub cron {
my $self = shift;
return $self->chain->cron(@_);
}
__PACKAGE__->meta->make_immutable;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Mail::MtPolicyd::VirtualHost - class for a VirtualHost instance
=head1 VERSION
version 2.02
=head1 AUTHOR
Markus Benning <ich@markusbenning.de>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2014 by Markus Benning <ich@markusbenning.de>.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
=cut
|