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 2009/07/07 17:38:13 UTC
[Bug 6149] New: False positives for ISO-2022-JP (Japanese)
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
Summary: False positives for ISO-2022-JP (Japanese)
Product: Spamassassin
Version: 3.2.5
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Score Generation
AssignedTo: dev@spamassassin.apache.org
ReportedBy: thomas@e-interwave.com
High rate of false positives occur for ISO-2022-JP encoded e-mails. This is a
very critical problem for all Japanese users.
As examples, merely having any one of the following 3 legitimate lines of text
in the Subject will trigger PLING_QUERY (2.2) and TVD_SPACE_RATIO (2.9),
flagging the e-mail as SPAM:
【麻生内閣メールマガジン 第36号】安心・活力・責任(2009/06/25)
コンピュータサービスの件
[物件内見]メールフォームからメールが送信されました
In the e-mail's Body, certain legitimate text may also trigger WEIRD_QUOTING
(2.8), OBSCURED_EMAIL (1.9), or other conditions. Examples will be supplied
upon request.
Such false positives DO NOT OCCUR for utf-8 encoding using the exact same text.
(This problem may be due to double-byte-character processing. If so, other
double-byte-character sets should be checked for the same problem, such as Big5
in Chinese.)
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #4 from Thomas Maadie <th...@e-interwave.com> 2009-07-07 09:35:05 PST ---
Created an attachment (id=4480)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4480)
Triggers PLING_QUERY,TVD_SPACE_RATIO
Test Case 3: Triggers PLING_QUERY,TVD_SPACE_RATIO
Use ISO-2022-JP encoding.
Use attachment as body. (This is the same text as in "Test Case 2".)
Use the following line as Subject:
[物件内見]メールフォームからメールが送信されました
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #24 from Thomas Maadie <th...@e-interwave.com> 2009-08-03 12:47:03 PST ---
Created an attachment (id=4494)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4494)
Test case 3: Using the word "Amazon" in double wide (2-byte) characters in the
Subject line, encoded in ISO-2022-JP.
Case 3 also tests for GAPPY_SUBJECT. Please look at the "Subject:" line only,
because that's all that matters here.
Encoded in ISO-2022-JP...
Subject: =?ISO-2022-JP?B?GyRCI0EjbSNhI3ojbyNuGyhC?=
Encoded in UTF-8...
Subject: =?UTF-8?B?77yh772N772B772a772P772O?=
The ISO-2022-JP one triggers GAPPY_SUBJECT & TVD_SPACE_RATIO.
The UTF-8 one only triggers TVD_SPACE_RATIO only.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #23 from Thomas Maadie <th...@e-interwave.com> 2009-08-03 12:37:22 PST ---
Created an attachment (id=4493)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4493)
Test case 2: Using the word "Print" in Japanese katakana in the subject line,
encoded in ISO-2022-JP.
Case 2 tests for GAPPY_SUBJECT. Please look at the "Subject:" line only,
because that's all that matters for
this test.
Encoded in ISO-2022-JP...
Subject: =?ISO-2022-JP?B?GyRCJVclaiVzJUgbKEI=?=
Encoded in UTF-8...
Subject: =?UTF-8?B?44OX44Oq44Oz44OI?=
The ISO-2022-JP one triggers GAPPY_SUBJECT & TVD_SPACE_RATIO.
The UTF-8 one only triggers TVD_SPACE_RATIO only.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #14 from Warren Togami <wt...@redhat.com> 2009-08-03 05:22:33 PST ---
I split my two Japanese users into their own masscheck named wt-japanese.
Unfortunately I have only ~1000 messages in this corpus, but it is showing
definite signs of some rules being bad. These rules seem to have very low
Correctly Spam ratios across all corpora.
http://ruleqa.spamassassin.org/20090801-r799815-n/TVD_SPACE_RATIO/detail
26.7% FP rate
http://ruleqa.spamassassin.org/20090801-r799815-n/PLING_QUERY/detail
11.5% FP rate
http://ruleqa.spamassassin.org/20090802-r800007-n/OBSCURED_EMAIL/detail
6.5% FP rate
http://ruleqa.spamassassin.org/20090801-r799815-n/WEIRD_QUOTING/detail
4.8% FP rate
http://ruleqa.spamassassin.org/20090801-r799815-n/GAPPY_SUBJECT/detail
4.7% FP rate
These users insist that they have confirmed their Ham boxes manually. I would
like to split out folders containing specific rule hits and ask them to choose
a few to submit as samples, but mboxget is misbehaving. It would be nice if
mboxget could output in mbox format.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #3 from Thomas Maadie <th...@e-interwave.com> 2009-07-07 09:19:44 PST ---
Created an attachment (id=4479)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4479)
Triggers GAPPY_SUBJECT,TVD_SPACE_RATIO
Test Case 2: Triggers GAPPY_SUBJECT,TVD_SPACE_RATIO
Use ISO-2022-JP encoding.
Use attachment as text.
Use the following subject line:
ロードランナー
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #12 from Thomas Maadie <th...@e-interwave.com> 2009-07-23 12:09:20 PST ---
(In reply to comment #10)
> hi -- sorry for the delay, but these samples are not usable; they are not full
> email messages. We need RFC-822 format messages:
> http://wiki.apache.org/spamassassin/Rfc822Format
>
> in particular, you will need to ensure the raw encoding format is used in the
> headers and body, without any decoding from 7-bit ASCII. we can't use the
> decoded form of ISO-2022-JP data.
Hello Justin,
I appreciate your looking into this.
In addition to the ISO-2022-JP encoding, do you also
need the utf-8 encoded version for comparison?
You'll see different SpamAssassin scores,
depending on the encoding I use.
I'll use Outlook Express 6 and/or Thunderbird 2.0 to create
the raw format, per your linked instructions.
(I don't know if my Japanese version of Eudora 6.2 will do the job,
but I'll try that also.)
I'll work on it over the weekend.
Thomas Maadie
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #29 from Thomas Maadie <th...@e-interwave.com> 2009-08-03 19:39:19 PST ---
Created an attachment (id=4499)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4499)
Test case 8: Japanese Subject line test for PLING_QUERY, encoded in
ISO-2022-JP.
Case 8 tests for PLING_QUERY. See the "Subject:" line.
Subject line text reads "Mail address soushinn no ken" in Japanese. (Original
Japanese text and translation will be supplied upon request).
Encoded in ISO-2022-JP...
Subject: =?ISO-2022-JP?B?GyRCJWEhPCVrJSIlSSVsJTkhIUF3Py4kTjdvGyhC?=
Encoded in UTF-8...
Subject: =?UTF-8?B?44Oh44O844Or44Ki44OJ44Os44K544CA6YCB5L+h44Gu5Lu2?=
The ISO-2022-JP one triggers PLING_QUERY & TVD_SPACE_RATIO.
The UTF-8 one triggers TVD_SPACE_RATIO only.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #20 from Karsten Bräckelmann <gu...@rudersport.de> 2009-08-03 09:26:11 PST ---
Ah. In that case, having a look at similar reports gathered from your
mass-check logs probably should do. A fully automated check of your local hits
against the ones on ruleqa probably can't be done easily.
Anyway, could we please move such discussions to the dev list? :)
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #6 from Thomas Maadie <th...@e-interwave.com> 2009-07-07 10:22:42 PST ---
(In reply to comment #1)
> hi. please attach plenty of false positives; the more we have, the more likely
> this can be fixed.
I'm done supplying attachments for the e-mail Body (Cases 1 thru 4). I believe
WEIRD_QUOTING and OBSCURED_EMAIL have to do with the Body only.
The other 3 conditions (PLING_QUERY, GAPPY_SUBJECT, and TVD_SPACE_RATIO) can
probably be tested using the Subject line only, with an empty Body.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #1 from Justin Mason <jm...@jmason.org> 2009-07-07 08:47:03 PST ---
hi. please attach plenty of false positives; the more we have, the more likely
this can be fixed.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #10 from Justin Mason <jm...@jmason.org> 2009-07-23 04:45:13 PST ---
hi -- sorry for the delay, but these samples are not usable; they are not full
email messages. We need RFC-822 format messages:
http://wiki.apache.org/spamassassin/Rfc822Format
in particular, you will need to ensure the raw encoding format is used in the
headers and body, without any decoding from 7-bit ASCII. we can't use the
decoded form of ISO-2022-JP data.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #31 from Warren Togami <wt...@redhat.com> 2009-08-06 09:06:19 PST ---
http://ruleqa.spamassassin.org/20090806-r801542-n/TVD_SPACE_RATIO/detail
wt-jp2 90% FP rate
http://ruleqa.spamassassin.org/20090806-r801542-n/PLING_QUERY/detail
wt-jp2 52% FP rate
http://ruleqa.spamassassin.org/20090806-r801542-n/GAPPY_SUBJECT/detail
wt-jp2 44% FP rate
http://ruleqa.spamassassin.org/20090806-r801542-n/OBSCURED_EMAIL/detail
wt-jp2 29% FP rate
http://ruleqa.spamassassin.org/20090806-r801542-n/WEIRD_QUOTING/detail
wt-jp2 6% FP rate
http://ruleqa.spamassassin.org/20090806-r801542-n/MIME_HTML_ONLY/detail
wt-en1 13% FP rate (English)
wt-jp1 16% FP rate (Half Japanese)
wt-jp2 15% FP rate (Japanese)
http://ruleqa.spamassassin.org/20090806-r801542-n/OBFUSCATING_COMMENT/detail
wt-jp1 5% FP rate (Half Japanese)
wt-jp2 11% FP rate (Japanese)
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #19 from Warren Togami <wt...@redhat.com> 2009-08-03 09:09:01 PST ---
Not exactly, much of the hand sorted mail didn't go through spamassassin at
all.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #13 from Justin Mason <jm...@jmason.org> 2009-07-23 13:07:49 PST ---
(In reply to comment #12)
> I'll use Outlook Express 6 and/or Thunderbird 2.0 to create
> the raw format, per your linked instructions.
> (I don't know if my Japanese version of Eudora 6.2 will do the job,
> but I'll try that also.)
actually, Eudora 6.2 can almost definitely get a decent copy of the original
messages more easily than Outlook Express can. look for some way of getting
access to the "mbox" format of the folder, or ask on the users mailing list and
I'm sure someone there will know how to do it...
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #15 from Warren Togami <wt...@redhat.com> 2009-08-03 05:25:02 PST ---
Is there any way to easily detect if other wt-japanese rule FP ratios are
differing substantially from the other corpora?
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #28 from Thomas Maadie <th...@e-interwave.com> 2009-08-03 19:09:17 PST ---
Created an attachment (id=4498)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4498)
Test case 7: Japanese Subject line test for PLING_QUERY, encoded in
ISO-2022-JP.
Case 7 tests for PLING_QUERY. See the "Subject:" line.
Subject line text reads "Computer service no ken" in Japanese. (Original
Japanese text and translation will be supplied upon request).
Encoded in ISO-2022-JP...
Subject: =?ISO-2022-JP?B?GyRCJTMlcyVUJWUhPCU/JTUhPCVTJTkkTjdvGyhC?=
Encoded in UTF-8...
Subject: =?UTF-8?B?44Kz44Oz44OU44Ol44O844K/44K144O844OT44K544Gu5Lu2?=
The ISO-2022-JP one triggers PLING_QUERY & TVD_SPACE_RATIO.
The UTF-8 one triggers TVD_SPACE_RATIO only.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
Justin Mason <jm...@jmason.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|Undefined |3.3.0
--- Comment #9 from Justin Mason <jm...@jmason.org> 2009-07-15 14:01:26 PST ---
will look at this for 3.3.0
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
Justin Mason <jm...@jmason.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #33 from Justin Mason <jm...@jmason.org> 2009-08-18 13:13:23 PST ---
and the remaining ones (as best I could reconstruct them):
: 716...; svn commit -m "bug 6149: fix more false positives on ISO-2022-JP mail
for TVD_SPACE_RATIO reported by Thomas Maadie. add more samples to t.rules test
suite for WEIRD_QUOTING, TVD_SPACE_RATIO, GAPPY_SUBJECT, OBSCURED_EMAIL to
avoid regressions in future"
Sending rules/20_body_tests.cf
Adding t.rules/GAPPY_SUBJECT/fp_bug6149_thomas_4479
Adding t.rules/OBSCURED_EMAIL
Adding t.rules/OBSCURED_EMAIL/fp_bug6149_thomas_4481
Adding t.rules/PLING_QUERY/fp_bug6149_thomas_4478
Adding t.rules/PLING_QUERY/fp_bug6149_thomas_4480
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_4478
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_4479
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_4480
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_4481
Adding t.rules/WEIRD_QUOTING
Adding t.rules/WEIRD_QUOTING/fp_bug6149_thomas_4478
Adding t.rules/WEIRD_QUOTING/fp_bug6149_thomas_4481
Transmitting file data ...........
Committed revision 805563 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=805563 ).
better samples for those first 4 attachments would be welcome, I suspect my
reconstructions may have missed something.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #32 from Justin Mason <jm...@jmason.org> 2009-08-18 13:02:43 PST ---
(In reply to comment #30)
> Created an attachment (id=4500)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4500) [details]
> Test case 9: Japanese Subject line test for PLING_QUERY, encoded in
> ISO-2022-JP.
thanks for all these samples Thomas, they helped a lot! they're all now in the
rule regression test suite too.
: 680...; svn commit -m "bug 6149: fix false positives on ISO-2022-JP mail for
TVD_SPACE_RATIO, GAPPY_SUBJECT, PLING_QUERY reported by Thomas Maadie"
Sending rules/20_body_tests.cf
Sending rules/20_head_tests.cf
Adding t.rules/GAPPY_SUBJECT
Adding
t.rules/GAPPY_SUBJECT/fp_bug6149_thomas_att4491_Gappy-Roadrunner-I
Adding t.rules/GAPPY_SUBJECT/fp_bug6149_thomas_att4493
Adding t.rules/GAPPY_SUBJECT/fp_bug6149_thomas_att4494
Adding t.rules/GAPPY_SUBJECT/fp_bug6149_thomas_att4495
Adding t.rules/GAPPY_SUBJECT/fp_bug6149_thomas_att4497
Adding t.rules/PLING_QUERY
Adding t.rules/PLING_QUERY/fp_bug6149_thomas_att4496
Adding t.rules/PLING_QUERY/fp_bug6149_thomas_att4498
Adding t.rules/PLING_QUERY/fp_bug6149_thomas_att4499
Adding t.rules/PLING_QUERY/fp_bug6149_thomas_att4500
Adding t.rules/TVD_SPACE_RATIO
Adding
t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_att4491_Gappy-Roadrunner-I
Adding
t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_att4492_Gappy-Roadrunner-U
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_att4493
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_att4494
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_att4495
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_att4496
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_att4497
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_att4498
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_att4499
Adding t.rules/TVD_SPACE_RATIO/fp_bug6149_thomas_att4500
Sending t.rules/run
Transmitting file data ......................
Committed revision 805559 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=805559 ).
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #22 from Thomas Maadie <th...@e-interwave.com> 2009-08-03 12:24:48 PST ---
Created an attachment (id=4492)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4492)
Test case 1, part 2: Using the word "Roadrunner" in Japanese katakana in the
subject line, encoded in UTF-8.
Test case 1, part 2: Gappy-Roadrunner-U.txt
Using the word "Roadrunner" in Japanese katakana in the subject line, encoded
in UTF-8. No body.
See the last upload, Gappy-Roadrunner-U.txt, and compare these 2.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #5 from Thomas Maadie <th...@e-interwave.com> 2009-07-07 10:04:28 PST ---
Created an attachment (id=4481)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4481)
Triggers OBSCURED_EMAIL,TVD_SPACE_RATIO,WEIRD_QUOTING
Test case 4: Triggers OBSCURED_EMAIL,TVD_SPACE_RATIO,WEIRD_QUOTING
Use ISO-2022-JP encoding
Use attached text as body
Use the following line as Subject:
【麻生内閣メールマガジン 第37号】国家・国民の安全と繁栄を目指して(2009/07/02)
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #26 from Thomas Maadie <th...@e-interwave.com> 2009-08-03 18:57:26 PST ---
Created an attachment (id=4496)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4496)
Test case 5: Japanese Subject line test for GAPPY_SUBJECT, encoded in
ISO-2022-JP.
Case 5 tests for GAPPY_SUBJECT. See the "Subject:" line.
Subject line text reads "Fwd: FW: condominium 2410?2 no Yano 8-gatsu no
shukuhaku yoyaku ni tsuite" in
Japanese. (Original Japanese text and translation will be supplied upon
request).
Encoded in ISO-2022-JP...
Subject: Fwd: FW:
=?ISO-2022-JP?B?GyRCJTMlcyVJJV8lSyUiJWAjMiM0IzEjMBsoQj8bJEIjMhsoQg==?=
=?ISO-2022-JP?B?GyRCJE5McExuISEjODduJE49SUdxTT1McyRLJEQkJCRGGyhC?=
Encoded in UTF-8...
Subject: Fwd: FW: =?UTF-8?B?44Kz44Oz44OJ44Of44OL44Ki44Og77yS77yU77yR77yQPw==?=
=?UTF-8?B?77yS44Gu55+i6YeO44CA77yY5pyI44Gu5a6/5rOK5LqI57SE44Gr44Gk44GE44Gm?=
The ISO-2022-JP one triggers GAPPY_SUBJECT & TVD_SPACE_RATIO.
The UTF-8 one triggers TVD_SPACE_RATIO only.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #7 from Thomas Maadie <th...@e-interwave.com> 2009-07-07 13:07:57 PST ---
Please do the easy testing first. And here they are...
Here are examples in the SUBJECT LINE which trigger
GAPPY_SUBJECT,TVD_SPACE_RATIO...
ロードランナー
プリント
Amazon
X-cart テンプレート
FW: web のFTP情報変更とご連絡願い
Fwd: FW: コンドミニアム2410?2の矢野 8月の宿泊予約について
RE: Corporation のIPアドレス、Subnet 、Gateway、DNS
Please put any one of the above 7 examples in your subject line. And please
test them using ISO-2022-JP encoding, and then use utf-8 encoding for
comparison.
If the above qualifies as "G.a.p.p.y" in the Subject line, where are the
offending spaces or characters in-between? These are false positives.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #16 from Karsten Bräckelmann <gu...@rudersport.de> 2009-08-03 08:14:30 PST ---
At least the TVD_SPACE_RATIO and GAPPY_SUBJECT are known to FP on Japanese (and
Chinese IIRC), bugs filed.
(In reply to comment #15)
> Is there any way to easily detect if other wt-japanese rule FP ratios are
> differing substantially from the other corpora?
You're using mbox format, so a hack like this should get you some nice
hit-rates at least. Anything close to the top with a positive score is a
candidate.
formail -c -x X-Spam-Status -s < MBOX | \
sed -re 's/^.+tests=(.+) autolearn.+/\1/' -e 's/[, \t]+/\n/g' | \
sort | uniq -c | sort -r -n
Hope this help.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #18 from Karsten Bräckelmann <gu...@rudersport.de> 2009-08-03 09:06:52 PST ---
Well, just run it. Have a look at the top rules and apply some common sense. It
should be dead easy to spot common FPs in there.
If in doubt, you can check back with ruleqa. But that hack *will* show you
heavy hitters on your ham corpus.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #2 from Thomas Maadie <th...@e-interwave.com> 2009-07-07 09:06:05 PST ---
Created an attachment (id=4478)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4478)
Triggers PLING_QUERY,TVD_SPACE_RATIO,WEIRD_QUOTING
Test case 1: Triggers PLING_QUERY,TVD_SPACE_RATIO,WEIRD_QUOTING
Use ISO-2022-JP encoding.
Use attached text as Body.
Use the following line as Subject:
【麻生内閣メールマガジン 第36号】安心・活力・責任(2009/06/25)
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #25 from Thomas Maadie <th...@e-interwave.com> 2009-08-03 18:50:27 PST ---
Created an attachment (id=4495)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4495)
Test case 4: Japanese Subject line test for GAPPY_SUBJECT, encoded in
ISO-2022-JP.
Case 4 tests for GAPPY_SUBJECT. See the "Subject:" line.
Subject line text reads "web no FTP johou hennkou to gorennraku-negai" in
Japanese. (Original Japanese text and translation will be supplied upon
request).
Encoded in ISO-2022-JP...
Subject: FW: web =?ISO-2022-JP?B?GyRCJE4jRiNUI1A+cEpzSlE5OSRIJDRPIk1tGyhC?=
=?ISO-2022-JP?B?GyRCNGokJBsoQg==?=
Encoded in UTF-8...
Subject: FW: web =?UTF-8?B?44Gu77ym77y077yw5oOF5aCx5aSJ5pu044Go44GU6YCj57Wh?=
=?UTF-8?B?6aGY44GE?=
The ISO-2022-JP one triggers GAPPY_SUBJECT & TVD_SPACE_RATIO.
The UTF-8 one triggers TVD_SPACE_RATIO only.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #17 from Warren Togami <wt...@redhat.com> 2009-08-03 08:28:04 PST ---
http://ruleqa.spamassassin.org/
No, I meant scores in the corpora as compared to the average from other
contributors.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #8 from Thomas Maadie <th...@e-interwave.com> 2009-07-07 20:54:29 PST ---
I notice that most of the false positives for ISO-2022-JP occur in the header.
I presume that SpamAssassin cannot correctly parse Japanese headers encoded in
ISO-2022-JP. Is this so?
May I suggest that you use MIME decoders (and encoders) specific to
ISO-2022-JP, before parsing them?
For decoding ISO-2022-JP header text, you should consider using
&mimedecode($string,$kout) in mimer.pl (below)...
http://www.cc.rim.or.jp/~ikuta/mime_pls/mimer.pl
For encoding ISO-2022-JP header text, you should consider using
&mimeencode($string) in mimew.pl (below)...
http://www.cc.rim.or.jp/~ikuta/mime_pls/mimew.pl
You can download these by clicking mime_pls202.tgz or mime_pls202.rat (under
"Ver.2.02") here...
http://www.cc.rim.or.jp/~ikuta/mime_pls/download.html
If you need to contact the author, Mr. Noboru Ikuta, for permission or
acknowledgement, you can contact him at noboru@ikuta.ichihara.chiba.jp .
Let me know if you need translation when contacting Mr. Ikuta, or if I should
contact him directly in Japanese.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #21 from Thomas Maadie <th...@e-interwave.com> 2009-08-03 12:20:33 PST ---
Created an attachment (id=4491)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4491)
Test: Put "Roadrunner" in Japanese katakana into the Subject. Encode in
ISO-2022-JP before sending it...
Uploading new tests for GAPPY_SUBJECT.
Test case 1: Gappy-Roadrunner-I.txt
Using the word "Roadrunner" in Japanese katakana in the subject line, encoded
in ISO-2022-JP. No body.
Please look at the "Subject:" line only, because that's all that matters for
this test.
Encoded in ISO-2022-JP...
Subject: =?ISO-2022-JP?B?GyRCJW0hPCVJJWklcyVKITwbKEI=?=
Encoded in UTF-8...
Subject: =?UTF-8?B?44Ot44O844OJ44Op44Oz44OK44O8?=
The ISO-2022-JP one triggers GAPPY_SUBJECT & TVD_SPACE_RATIO.
The UTF-8 one only triggers TVD_SPACE_RATIO only.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #27 from Thomas Maadie <th...@e-interwave.com> 2009-08-03 19:02:22 PST ---
Created an attachment (id=4497)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4497)
Test case 6: Japanese Subject line test for GAPPY_SUBJECT, encoded in
ISO-2022-JP.
Case 6 tests for GAPPY_SUBJECT. See the "Subject:" line.
Subject line text reads "Re: Corporation no IP address, Subnet, Gagteway, DNS"
in mixed English and Japanese. (Original text and translation will be supplied
upon request).
Encoded in ISO-2022-JP...
Subject: RE: Corporation =?ISO-2022-JP?B?GyRCJE4jSSNQJSIlSSVsJTkhIhsoQlN1?=
=?ISO-2022-JP?B?Ym5ldCAbJEIhIhsoQkdhdGV3YXkbJEIhIhsoQkROUw==?=
Encoded in UTF-8...
Subject: RE: Corporation =?UTF-8?B?44Gu77yp77yw44Ki44OJ44Os44K544CBU3Vibg==?=
=?UTF-8?B?ZXQg44CBR2F0ZXdheeOAgUROUw==?=
The ISO-2022-JP one triggers GAPPY_SUBJECT & TVD_SPACE_RATIO.
The UTF-8 one triggers TVD_SPACE_RATIO only.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
Justin Mason <jm...@jmason.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.3.0 |Undefined
--- Comment #11 from Justin Mason <jm...@jmason.org> 2009-07-23 04:45:54 PST ---
will re-add to milestone when we get usable samples
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
--- Comment #30 from Thomas Maadie <th...@e-interwave.com> 2009-08-03 19:54:23 PST ---
Created an attachment (id=4500)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4500)
Test case 9: Japanese Subject line test for PLING_QUERY, encoded in
ISO-2022-JP.
Case 9 tests for PLING_QUERY. See the "Subject:" line.
Subject line text reads "Shin-shohin Tekoge Kakaku-minaoshi" in Japanese.
(Original Japanese text and translation will be supplied upon request).
Encoded in ISO-2022-JP...
Subject: Fw: =?ISO-2022-JP?B?GyRCPzc+JklKISE8aj5HJDIhITJBM0o4K0Q+JDcbKEI=?=
Encoded in UTF-8...
Subject: Fw: =?UTF-8?B?5paw5ZWG5ZOB44CA5omL54Sm44GS44CA5L6h5qC86KaL55u044GX?=
The ISO-2022-JP one triggers PLING_QUERY & TVD_SPACE_RATIO.
The UTF-8 one triggers TVD_SPACE_RATIO only.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 6149] False positives for ISO-2022-JP (Japanese)
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6149
Justin Mason <jm...@jmason.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|Undefined |3.3.0
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.