SpamAssassin & uninitialized value $type

Apply

New Member
Hallo Zusammen,

ich verwende einen Debian 7.x Server mit Postfix, Spamassassin und Amavis.

Jetzt erhalte ich folgende Fehlermeldung:
Use of uninitialized value $type in numeric eq (==) at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 668.
Use of uninitialized value $type in numeric eq (==) at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 671.
Use of uninitialized value $type in numeric eq (==) at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 674.
Use of uninitialized value $type in numeric eq (==) at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 677.
Use of uninitialized value $type in numeric eq (==) at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 680.
Use of uninitialized value $type in numeric eq (==) at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 683.
Use of uninitialized value $type in numeric eq (==) at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 686.
Use of uninitialized value $type in numeric eq (==) at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 689.
Use of uninitialized value $type in numeric eq (==) at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 692.
Use of uninitialized value $type in numeric eq (==) at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 695.
Use of uninitialized value $type in concatenation (.) or string at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 699.
config: unknown conf type ! at /usr/local/share/perl/5.14.2/Mail/SpamAssassin/Conf/Parser.pm line 699.

sub setup_default_code_cb {
my ($self, $cmd) = @_;
my $type = $cmd->{type};

if ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_STRING) {
$cmd->{code} = \&set_string_value;
}
elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_BOOL) {
$cmd->{code} = \&set_bool_value;
}
elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC) {
$cmd->{code} = \&set_numeric_value;
}
elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_HASH_KEY_VALUE) {
$cmd->{code} = \&set_hash_key_value;
}
elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_ADDRLIST) {
$cmd->{code} = \&set_addrlist_value;
}
elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_TEMPLATE) {
$cmd->{code} = \&set_template_append;
}
elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_NOARGS) {
$cmd->{code} = \&set_no_value;
}
elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_STRINGLIST) {
$cmd->{code} = \&set_string_list;
}
elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_IPADDRLIST) {
$cmd->{code} = \&set_ipaddr_list;
}
elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_DURATION) {
$cmd->{code} = \&set_duration_value;
}
else {
warn "config: unknown conf type $type!";
return 0;
}
return 1;
}

Habt Ihr mir einen Tip, wo ich hier ansetzen könnte?

Vielen Dank im Voraus.
 
Back
Top