Re: Release DSPAM 3.9.1 ?

Stevan Bajić <[email protected]> Wed, 15 Jun 2011 21:32:37 +0200
Newsgroups gmane.mail.spam.dspam.devel
Message-ID <[email protected]>
On Tue, 14 Jun 2011 18:20:13 +0100
Carlo Rodrigues <[email protected]> wrote:

> Hello,
> 
Hello Carlo,


> I was able to find another problematic email, that is displayed 
> correctly on the history page, but that generates an error when viewing 
> the htmlized quarantine.
> I'm attaching the user folder with just that email. ($USER.log and 
> $USER.mbox)
> 
I just extracted the subject line from the mbox file and made this quick and dirty Perl file for testing:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#!/usr/bin/perl -w
#

require "htmlize.pl";

my $header = 'Subject: =?UTF-8?B?RWluIHNjaMO2bmVzIFdvY2hlbmVkZSEgTnVyIDIgVGFnZSBSYWJhdHQsIEhhbmR5IC0xMjfigqwsIFRhYmxldCBQQyAtMzDigqw=?=';
if ($header =~ /^(.*?)=\?([^?]+)\?([qb])\?([^?]*)\?=(.*)$/is) {
  print htmlize_chars($header) . "\n";
} else {
  print "Not encoded\n";
}
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

I copied the htmlize.pl from GIT into the same directory and run the Perl script and get this as output:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
theia ~ # perl ./csmr.pl
Subject: Ein sch&ouml;nes Wochenede! Nur 2 Tage Rabatt, Handy -127&euro;, Tablet PC -30&euro;
theia ~ # 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

IMHO this looks okay. It's German and say "Have a nice weekend! Only 2 days left for discount, mobile handset -127€, tablet PC -30€".

So the htmlize_chars in htmlize.pl is IMHO working correctly. Can you check on your install if you get the same result with the above Perl script?


> Carlo
> 
-- 
Kind Regards from Switzerland,

Stevan Bajić

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel