BEGIN {
for (qw(headerhas store headeris did dnsbl store_muttrc_alternates Received_for parts_linear mime_type
- body_first mimehead razor2 header_remap)) {
+ body_first mimehead spamassassin header_remap)) {
eval 'sub '.$_.' { return ::'.$_.'(@_); }';
}
}
sub audit
{
$store_profile=undef();
- # TODO: <short-m@> storage?
# never spawn new mail if FROM_MAILER
# $isFROM_MAILER postponed after maillists as they may look as FROM_MAILER
# Do not local $store_file as it is our-imported
$store_profile="silent";
local $_;
- store "=spam".($_ eq 1 ? "" : ";$_") if $_=razor2();
+ store "=spam".($_ eq 1 ? "" : ";$_") if $_=spamassassin();
};
$store_profile=undef();
return if did sub {
store "=errm","bell" if $isFROM_MAILER && !did();
- store "==","sms" if !did;
+ if (!did) {
+ store "==","sms";
+ spamassassin "sa-learn --ham";
+ }
}
sub audit_sms_address