in reply to Re^4: MIME voodoo.
in thread MIME voodoo.
if you switch the two mimes around it doesn't work
Note my last comment for the example. There's a bug, as $_->content_type returns not just text/plain, but text/plain; charset=.... So you should replace
with$ct{$_->content_type} = $_ for @parts;
for (@parts) { (my $c = $_->content_type) =~ s/;.+//; $ct{$c} = $_; }
but this solution thought would work for most messages isn't perfect either, as it is possible to have several text/plain parts with different charsets.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: MIME voodoo.
by vxp (Pilgrim) on Jul 16, 2009 at 20:10 UTC | |
by ikegami (Patriarch) on Jul 16, 2009 at 20:39 UTC | |
by vxp (Pilgrim) on Jul 16, 2009 at 20:54 UTC | |
by zwon (Abbot) on Jul 16, 2009 at 20:40 UTC |