svn commit: r1934280 - spamassassin/trunk/lib/Mail/SpamAssassin/Plugin
[email protected] Sun, 17 May 2026 01:12:16 -0000
| Newsgroups | gmane.mail.spam.spamassassin.cvs |
|---|---|
| Message-ID | <177898033608.3796512.14518043954449825273@svn03-he-fi> |
Author: fkento
Date: Sun May 17 01:12:15 2026
New Revision: 1934280
Log:
Remove TxRep dependency on ->all_from_addrs()[0] -- check From:addr directly
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/TxRep.pm
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/TxRep.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/TxRep.pm Sun May 17 01:08:19 2026 (r1934279)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/TxRep.pm Sun May 17 01:12:15 2026 (r1934280)
@@ -1383,12 +1383,6 @@ sub check_senders_reputation {
dbg("TxRep: autolearning disabled, no more reputation adjusting, quitting");
return 0;
}
- my @from = $pms->all_from_addrs();
- if (@from && $from[0] eq '[email protected]') {
- dbg("TxRep: no scan in lint mode, quitting");
- return 0;
- }
-
my $skip_domains = $self->{conf}->{txrep_skip_domains} || {};
my $delta = 0;
@@ -1399,6 +1393,10 @@ sub check_senders_reputation {
my $from = lc $pms->get('From:addr') || $pms->get('EnvelopeFrom:addr');
return 0 unless $from =~ /\S/;
+ if ($from eq '[email protected]') {
+ dbg("TxRep: no scan in lint mode, quitting");
+ return 0;
+ }
my $domain = $from;
$domain =~ s/^.+@//;