Bug 452 - SUBJ_ALL_CAPS is broken for non-latin subjects
Summary: SUBJ_ALL_CAPS is broken for non-latin subjects
Status: RESOLVED DUPLICATE of bug 441
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Rules (show other bugs)
Version: 2.20
Hardware: PC FreeBSD
: P2 normal
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-14 18:23 UTC by Alex Vasylenko
Modified: 2002-06-14 14:48 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Vasylenko 2002-06-14 18:23:19 UTC
Test case:
Subject: =?koi8-r?B?0tXT08vB0SDSxd7Y?=
(the subject is 2 lower case words in russian)

For a subject like the above, $subject == uc($subject).
The bug in EvalTests.pm:subject_is_all_caps prevents russian letters 
from being removed before the comparison.

The patch:
--- EvalTests.pm~       Thu Apr 11 09:32:35 2002
+++ EvalTests.pm        Fri Jun 14 17:50:23 2002
@@ -966,7 +966,7 @@

    return 0 if subject_missing($self);

-   $subject =~ s/[^a-zA-Z]//;
+   $subject =~ s/[^a-zA-Z]//g;
    return length($subject) && ($subject eq uc($subject));
 }
Comment 1 Duncan Findlay 2002-06-14 22:48:57 UTC

*** This bug has been marked as a duplicate of 441 ***