You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by mm...@apache.org on 2015/08/11 14:20:21 UTC
svn commit: r1695290 -
/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm
Author: mmartinec
Date: Tue Aug 11 12:20:20 2015
New Revision: 1695290
URL: http://svn.apache.org/r1695290
Log:
Plugin/HeaderEval: removing clutter: strip Mail::SpamAssassin::Util:: prefix on already imported subs
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm?rev=1695290&r1=1695289&r2=1695290&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm Tue Aug 11 12:20:20 2015
@@ -118,7 +118,7 @@ sub check_for_faraway_charset_in_headers
my ($self, $pms) = @_;
my $hdr;
- my @locales = Mail::SpamAssassin::Util::get_my_locales($self->{main}->{conf}->{ok_locales});
+ my @locales = get_my_locales($self->{main}->{conf}->{ok_locales});
return 0 if grep { $_ eq "all" } @locales;
@@ -735,7 +735,7 @@ sub _get_date_header_time {
for my $date (@dates) {
if (defined($date) && length($date)) {
chomp($date);
- $time = Mail::SpamAssassin::Util::parse_rfc822_date($date);
+ $time = parse_rfc822_date($date);
}
last DATE if defined($time);
}
@@ -786,7 +786,7 @@ sub _get_received_header_times {
if ($rcvd =~ m/(\s.?\d+ \S\S\S \d+ \d+:\d+:\d+ \S+)/) {
my $date = $1;
dbg2("eval: trying Received fetchmail header date for real time: $date");
- my $time = Mail::SpamAssassin::Util::parse_rfc822_date($date);
+ my $time = parse_rfc822_date($date);
if (defined($time) && (time() >= $time)) {
dbg2("eval: time_t from date=$time, rcvd=$date");
push @fetchmail_times, $time;
@@ -806,7 +806,7 @@ sub _get_received_header_times {
if ($rcvd =~ m/(\s.?\d+ \S\S\S \d+ \d+:\d+:\d+ \S+)/) {
my $date = $1;
dbg2("eval: trying Received header date for real time: $date");
- my $time = Mail::SpamAssassin::Util::parse_rfc822_date($date);
+ my $time = parse_rfc822_date($date);
if (defined($time)) {
dbg2("eval: time_t from date=$time, rcvd=$date");
push @header_times, $time;
@@ -966,14 +966,14 @@ sub check_outlook_message_id {
my $fudge = 250;
$_ = $pms->get('Date');
- $_ = Mail::SpamAssassin::Util::parse_rfc822_date($_) || 0;
+ $_ = parse_rfc822_date($_) || 0;
my $expected = int (($_ * $x) + $y);
my $diff = $timetoken - $expected;
return 0 if (abs($diff) < $fudge);
$_ = $pms->get('Received');
/(\s.?\d+ \S\S\S \d+ \d+:\d+:\d+ \S+).*?$/;
- $_ = Mail::SpamAssassin::Util::parse_rfc822_date($_) || 0;
+ $_ = parse_rfc822_date($_) || 0;
$expected = int(($_ * $x) + $y);
$diff = $timetoken - $expected;