Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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?

Hi,

(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
McA


Comment on Re: MIME Parsing Entity not exposing charset?
Select or Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-05 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls