diff options
author | ache <ache@FreeBSD.org> | 2002-02-27 01:06:25 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-02-27 01:06:25 +0800 |
commit | f2917e3854081887855125d27fc2e91fec50a261 (patch) | |
tree | 0276f51f72b73c49e071094d2501b36f37608503 /mail | |
parent | edeae578055210cb237a252d5d5ed254e29dc352 (diff) | |
download | freebsd-ports-gnome-f2917e3854081887855125d27fc2e91fec50a261.tar.gz freebsd-ports-gnome-f2917e3854081887855125d27fc2e91fec50a261.tar.zst freebsd-ports-gnome-f2917e3854081887855125d27fc2e91fec50a261.zip |
1) Fix bug: check_for_faraway_charset_in_headers() does nothing
2) Add missing charsets into decode_mime_bit()
Diffstat (limited to 'mail')
3 files changed, 33 insertions, 1 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile index 8e0b072efefb..79710e08a2d2 100644 --- a/mail/p5-Mail-SpamAssassin/Makefile +++ b/mail/p5-Mail-SpamAssassin/Makefile @@ -7,7 +7,7 @@ PORTNAME= Mail-SpamAssassin PORTVERSION= 2.01 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= mail perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Mail diff --git a/mail/p5-Mail-SpamAssassin/files/patch-lib-Mail-SpamAssassin::EvalTests.pm b/mail/p5-Mail-SpamAssassin/files/patch-lib-Mail-SpamAssassin::EvalTests.pm new file mode 100644 index 000000000000..c1307e54631d --- /dev/null +++ b/mail/p5-Mail-SpamAssassin/files/patch-lib-Mail-SpamAssassin::EvalTests.pm @@ -0,0 +1,21 @@ +--- lib/Mail/SpamAssassin/EvalTests.pm.bak Fri Jan 25 07:36:02 2002 ++++ lib/Mail/SpamAssassin/EvalTests.pm Tue Feb 26 19:17:43 2002 +@@ -688,10 +688,17 @@ + + sub check_for_faraway_charset_in_headers { + my ($self) = @_; ++ my $hdr; + + my @locales = $self->get_my_locales(); + for my $h (qw(From Subject)) { +- my $hdr = $self->get($h); ++# Can't use just get() because it un-mime header ++ my @hdrs = $self->{msg}->get_header ($h); ++ if ($#hdrs >= 0) { ++ $hdr = join (" ", @hdrs); ++ } else { ++ $hdr = ''; ++ } + while ($hdr =~ /=\?(.+?)\?.\?.*?\?=/g) { + Mail::SpamAssassin::Locales::is_charset_ok_for_locales($1, @locales) + or return 1; diff --git a/mail/p5-Mail-SpamAssassin/files/patch-lib-Mail-SpamAssassin::PerMsgStatus.pm b/mail/p5-Mail-SpamAssassin/files/patch-lib-Mail-SpamAssassin::PerMsgStatus.pm new file mode 100644 index 000000000000..362d23a91753 --- /dev/null +++ b/mail/p5-Mail-SpamAssassin/files/patch-lib-Mail-SpamAssassin::PerMsgStatus.pm @@ -0,0 +1,11 @@ +--- lib/Mail/SpamAssassin/PerMsgStatus.pm.bak Thu Jan 24 05:39:15 2002 ++++ lib/Mail/SpamAssassin/PerMsgStatus.pm Tue Feb 26 19:08:32 2002 +@@ -788,6 +788,8 @@ + if ($encoding =~ /^US-ASCII$/i + || $encoding =~ /^ISO-8859-\d+$/i + || $encoding =~ /^UTF-8$/i ++ || $encoding =~ /^KOI8-\w$/i ++ || $encoding =~ /^WINDOWS-125\d$/i + ) + { + # keep 8-bit stuff. forget mapping charsets though |