Mail-SpamAssassin
view release on metacpan or search on metacpan
lib/Mail/SpamAssassin/Util/DependencyInfo.pm view on Meta::CPAN
check for both Net::DNS and Net::DNS::Nameserver. However,
Net::DNS::Nameserver is only used in make test as of June 2014.',
},
{
module => 'BSD::Resource',
version => 0,
desc => 'BSD::Resource provides BSD process resource limit and priority
functions. It is used by the optional ResourceLimits Plugin.',
},
{
module => 'Archive::Zip',
version => 0,
desc => 'Archive::Zip provides an interface to ZIP archive files.
It is used by the optional OLEVBMacro Plugin.',
},
{
module => 'IO::String',
version => 0,
desc => 'IO::String emulates file interface for in-core strings.
It is used by the optional OLEVBMacro Plugin.',
},
{
module => 'Email::Address::XS',
version => 0,
desc => 'Email::Address::XS is used to parse email addresses from header
fields like To/From/cc, per RFC 5322. If installed, it may additionally
be used by internal parser to process complex lists.',
},
{
module => 'Mail::DMARC',
version => 0,
desc => 'Mail::DMARC is used by the optional DMARC plugin.',
},
{
module => 'Devel::Cycle',
version => 0,
desc => 'Devel::Cycle is used in make test in tests that will be harmelessly
skipped if it is not available',
},
{
module => 'Text::Diff',
version => 0,
desc => 'Text::Diff is used in make test in tests that will be harmelessly
skipped if it is not available',
},
);
our @BINARIES = ();
my $lwp_note = " Sa-update will use curl, wget or fetch to download updates.
Because perl module LWP does not support IPv6, sa-update as of
3.4.0 will use these standard programs to download rule updates
leaving LWP as a fallback if none of the programs are found.
*IMPORTANT NOTE*: You only need one of these programs
It's only a concern if you are warned about all 3
i.e. (curl, wget & fetch) missing";
our @OPTIONAL_BINARIES = (
{
binary => 'gpg',
version => '0',
recommended_min_version => '1.0.6',
version_check_params => '--version',
version_check_regex => 'gpg \(GnuPG\) ([\d\.]*)',
desc => 'The "sa-update" program requires this executable to verify
encryption signatures. It is not recommended, but you can use
"sa-update" with the --no-gpg to skip the verification. ',
},
{
binary => 'wget',
version => '0',
recommended_min_version => '1.8.2',
version_check_params => '--version',
version_check_regex => 'Gnu Wget ([\d\.]*)',
desc => $lwp_note,
},
{
binary => 'curl',
version => '0',
recommended_min_version => '7.2.14',
version_check_params => '--version',
version_check_regex => 'curl ([\d\.]*)',
desc => $lwp_note,
},
{
binary => 're2c',
version => '0',
desc => 'The "re2c" program is used by sa-compile to compile rules
for regular expressions to speed up scanning.',
}
);
#Fetch is a FreeBSD Product. We do not believe it has any way to check the version from
#the command line. It has been tested with FreeBSD version 8 through 9.1.
if ($^O eq 'freebsd') {
push @OPTIONAL_BINARIES, {
binary => 'fetch',
version => '0',
desc => $lwp_note,
};
}
# The numbers being tested only have to be anything more than truncated packets will have
# That allows some flexibility if the exact test records are changed in the future
our @NETWORK_TESTS = (
{
'name' => 'txttcp.spamassassin.org',
'type' => 'TXT',
'min_answers' => 10,
},
{
'name' => 'multihomed.dnsbltest.spamassassin.org',
'type' => 'A',
'min_answers' => 4,
},
);
###########################################################################
=head1 METHODS
=over 4
=item $f-E<gt>debug_diagnostics ()
Output some diagnostic information, useful for debugging SpamAssassin
( run in 0.578 second using v1.01-cache-2.11-cpan-df04353d9ac )