Stop pretending to understand text/enriched when we clearly don't. Reported
by Steven Leach on debian-user, Message-Id:
<
1EAAE989-5FC5-11D8-875A-
000393AF4F78@mac.com>.
}
return if not $top and $disposition eq 'attachment' and not defined($att);
- return unless ($type =~ m[^text/?] and $type !~ m[^text/html(?:;|$)]) or
+ return unless ($type =~ m[^text/?] and
+ $type !~ m[^text/(?:html|enriched)(?:;|$)]) or
$type =~ m[^application/pgp(?:;|$)] or
$entity->parts;
# -*- perl -*-
-# $Id: errorlib.in,v 1.40 2003/08/30 00:15:15 cjwatson Exp $
+# $Id: errorlib.in,v 1.41 2004/02/15 16:12:00 cjwatson Exp $
use Mail::Address;
sub getmailbody {
my $entity = shift;
my $type = $entity->effective_type;
- if ($type eq 'text/plain' or
- ($type =~ m#text/# and $type ne 'text/html') or
+ if ($type =~ m#text/(?!html|enriched)# or
$type eq 'application/pgp') {
return $entity->bodyhandle;
} elsif ($type eq 'multipart/alternative') {