Re: bug in MIME::Entity make_singlepart

2008-06-30 Thread Dave O'Neill
On Fri, Jun 27, 2008 at 11:37:56AM -0400, Ricardo SIGNES wrote: > > I think that it's documented, so it should keep working. If nobody > has asked for it to throw an error, it either isn't coming up or it's > coming up and people accept it. > > I'd suggest adding an error-generating branch (with

Re: bug in MIME::Entity make_singlepart

2008-06-27 Thread Ricardo SIGNES
* Dave O'Neill <[EMAIL PROTECTED]> [2008-06-27T10:30:10] > On Thu, Jun 26, 2008 at 01:37:09PM -0400, Ricardo SIGNES wrote: > > Content-Type: multipart/related; boundary=xyzzy; type=foo > > Content-Type: text/plain; boundary=xyzzy; type=foo > > The docs for make_singlepart say "Also crunches 0-

Re: bug in MIME::Entity make_singlepart

2008-06-27 Thread Dave O'Neill
On Thu, Jun 26, 2008 at 01:37:09PM -0400, Ricardo SIGNES wrote: > > Sometimes, when collapsing a message into single part, the C-T is horked up. > > It starts as: > > Content-Type: multipart/related; boundary=xyzzy; type=foo > > ...and ends as: > > Content-Type: text/plain; boundary=xyzzy;

Re: bug in MIME::Entity make_singlepart

2008-06-26 Thread Ricardo SIGNES
* Ricardo SIGNES <[EMAIL PROTECTED]> [2008-06-26T13:37:09] > Demonstration attached. Thanks, ezmlm. Here it is: use strict; use MIME::Parser; # my $entity = MIME::Parser->new->parse_open('bizarre.msg'); my $entity = MIME::Parser->new->parse(\*DATA); sub cleanup_mime { my ($entity) = @_; fo