+{
+ my $f = 't/x-unknown-alpine.eml';
+ my $mime = Email::MIME->new(do {
+ open my $fh, '<', $f or die "open($f): $!";
+ local $/;
+ binmode $fh;
+ <$fh>;
+ });
+ my $raw = '';
+ msg_iter($mime, sub {
+ my ($part, $level, @ex) = @{$_[0]};
+ my ($s, $err) = msg_part_text($part, 'text/plain');
+ $raw .= $s;
+ });
+ like($raw, qr!^\thttps://!ms, 'tab expanded with X-UNKNOWN');
+ like(ascii_html($raw), qr/• bullet point/s,
+ 'got bullet point when X-UNKNOWN assumes UTF-8');
+}
+