Subject: | [patch] Fix MIME::Entity::parts() so that removal of sections actually works. |
--- /usr/lib/perl5/site_perl/5.8.5/MIME/Entity.pm~ 2008-06-30
14:25:19.000000000 -0400
+++ /usr/lib/perl5/site_perl/5.8.5/MIME/Entity.pm 2008-11-25
23:36:57.000000000 -0500
@@ -1000,7 +1000,7 @@
sub parts {
my $self = shift;
- ref($_[0]) and return @{$self->{ME_Parts} = [@{$_[0]}]}; ### set
the parts
+ ref($_[0]) and return @{$self->{ME_Parts} = [
@{$self->{ME_Parts}}[@{$_[0]}] ]};
(@_ ? $self->{ME_Parts}[$_[0]] : @{$self->{ME_Parts}});
}