You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2007/09/04 09:09:34 UTC

[Bug 5640] New: UTF8 is missing from CHARSETS_LIKELY_TO_FP_AS_CAPS

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5640

           Summary: UTF8 is missing from CHARSETS_LIKELY_TO_FP_AS_CAPS
           Product: Spamassassin
           Version: 3.2.3
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Rules
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: barzog@telecom.by


We have following subject:
Subject: =?utf-8?B?0JDQutGCIOKEliAwMDAwMDA5OTA1INC+0YIgMDEuMDguMjAwNw==?=
 =?utf-8?B?INC00LvRjyAi0JfQkNCeINCR0LXQu9Cw0J/QkNCdIiDQvtGCINCQ0YLQu9Cw0L3RgiDQ
 =?utf-8?B?0LXQu9C10LrQvtC8?=

It's legal base64 utf8 subject, but due missing utf-8 in Constants.pm:
use constant CHARSETS_LIKELY_TO_FP_AS_CAPS => qr{[-_a-z0-9]*(?:
          koi|jp|jis|euc|gb|big5|isoir|cp1251|georgianps|pt154|tis
        )[-_a-z0-9]*}ix;
We always have triggered SUBJ_ALL_CAPS.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5640] UTF8 is missing from CHARSETS_LIKELY_TO_FP_AS_CAPS

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5640





------- Additional Comments From barzog@telecom.by  2007-09-04 01:23 -------
It seems that this rewrite in Constants.pm is totally wrong, 'cause even after 
changing subject encoding to cp1251 (i.e.: Subject: 
=?cp1251?B?wOryILkgMDAwMDAwOTI3MyDu8iAwMS4wOC4yMDA3?=
 =?cp1251?B?IOTr/yAiT09PIN309OXq8uji7fvlIO/w7uPw4Ozs?=
 =?cp1251?B?+yIg7vIgwPLr4O3yINLl6+Xq7uw=?=)
it triggers SUBJ_ALL_CAPS. After rewriting regexp to:

use constant CHARSETS_LIKELY_TO_FP_AS_CAPS => qr{[-_a-z0-9?]*(
          koi|jp|jis|euc|gb|big5|isoir|cp1251|georgianps|pt154|tis
        )[-_a-z0-9?]*}ix;
all works well



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.