In check_for_faraway_charset(), get_decoded_stripped_body_text_array() 
returns a reference to an array, but are_more_high_bits_set() was being 
called like it was a normal strings, so are_more_high_bits_set() was never 
returning true.  I added a line to join() the lines of the array before 
handing them to are_more_high_bits_set(), and now SA correctly detects 
foreign language charsets.

Index: lib/Mail/SpamAssassin/EvalTests.pm
===================================================================
RCS file: 
/cvsroot/spamassassin/spamassassin/lib/Mail/SpamAssassin/EvalTests.pm,v
retrieving revision 1.106
diff -u -3 -p -r1.106 EvalTests.pm
--- lib/Mail/SpamAssassin/EvalTests.pm  20 Feb 2002 03:13:20 -0000      1.106
+++ lib/Mail/SpamAssassin/EvalTests.pm  1 Mar 2002 08:23:06 -0000
@@ -634,6 +634,8 @@ sub check_for_faraway_charset {
     # number of 8-bit chars in the body text first.
 
     my $body = $self->get_decoded_stripped_body_text_array();
+    $body = join ("\n", @$body);
+
     if ($self->are_more_high_bits_set ($body)) {
       return 1;
     }



-- 
http://dmoz.org                  | Give a man a match, and he'll be warm for a
                                 | minute, but light him on fire, and he'll be
The world's largest human edited | warm for the rest of his life.
edited web directory directory   | ICQ: 132152059

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to