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önes Wochenede! Nur 2 Tage Rabatt, Handy -127€,
Tablet PC -30€
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