svn commit: r1937148 - spamassassin/trunk/lib/Mail/SpamAssassin/Plugin

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <178687037691.2538993.14907615781154086467@svn03-he-fi>
Author: gbechis
Date: Sun Aug 16 08:52:56 2026
New Revision: 1937148

Log:
check Subject length after stripping UTF-8 chars
bz #5859

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm	Sun Aug 16 08:30:31 2026	(r1937147)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm	Sun Aug 16 08:52:56 2026	(r1937148)
@@ -960,8 +960,8 @@ sub subject_is_all_caps {
    $subject =~ s/\s+$//;
    $subject =~ s/^(?:(?:Re|Fwd|Fw|Aw|Antwort|WG|SV|VB|VS|VL):\s*)+//i;  # Bug 6805
    return 0 if $subject !~ /\s/;	# don't match one word subjects
-   return 0 if (length $subject < 10);  # don't match short subjects
    $subject =~ s/[^a-zA-Z]//g;		# only look at letters
+   return 0 if (length $subject < 10);  # don't match short subjects
 
    # now, check to see if the subject is encoded using a non-ASCII charset.
    # If so, punt on this test to avoid FPs.  We just list the known charsets
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.