On May 1, 2013, at 5:36 PM, Philip Prindeville 
<philipp_s...@redfish-solutions.com> wrote:

> 
> On Apr 30, 2013, at 1:51 PM, David F. Skoll <d...@roaringpenguin.com> wrote:
> 
>> 
>> I use MIME::Entity->build(...), but I'll have a look at why
>> new(...) seems to be misbehaving.
> 

On a slightly related vein, I tried to do a workaround the following way:

my $parser = MIME::Parser->new();

$parser->ignore_errors(0);
$parser->decode_bodies(0);

for (my $i = 1; $i <= $msgs; ++$i, $parser->filer->purge) {
  my $lines = $pop->top($i, 0);


  my $msg = $parser->parse_data($lines);
  …
}

but it turns out that this blows out with:

error:    unexpected end of header

I'm guessing because we have a "Content-Type: … ; boundary=…" line, and we 
never see a closing boundary.

Would it be possible to add a flag that allows the parse_* methods to succeed 
in the absence of body text?

Thanks,

-Philip

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to