Never treat the top-level message part as an attachment, no matter what the
Content-Disposition: says (Daniel Stone).
}
}
- return if $disposition eq 'attachment' and not defined($att);
+ return if not $top and $disposition eq 'attachment' and not defined($att);
return unless ($type =~ m[^text/?] and $type !~ m[^text/html(?:;|$)]) or
$type =~ m[^application/pgp(?:;|$)] or
$entity->parts;