Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: MIME Parsing Entity not exposing charset?

by McA (Priest)
on Mar 04, 2013 at 17:32 UTC ( #1021683=note: print w/ replies, xml ) Need Help??

in reply to MIME Parsing Entity not exposing charset?


(first best guess answer thrown away)

I looked at the problem a little bit deeper as I was interested in that domain knowing that I will stumble about that earlier or later.

Add the following snippet to your code:

my @parts = $entity->parts(); foreach my $part (@parts) { my $head = $part->head(); print "Effective: " . $part->effective_type() . "\n"; print "Content-Type from Header: " . $head->get('Content-Type') . +"\n"; }
and you will see that the original information is there. Why it isn't dumped with the method dump_skeleton is something different.

Best regards

Comment on Re: MIME Parsing Entity not exposing charset?
Select or Download Code
Replies are listed 'Best First'.
Re^2: MIME Parsing Entity not exposing charset?
by wilsotc (Initiate) on Mar 04, 2013 at 19:09 UTC
    Thank you!!

    I had figured it out and was about to post the same thing. I believe I had found some old documentation floating around that was outdated and had to dig in to the source code.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021683]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2016-02-10 13:53 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (346 votes), past polls