Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: MIME Parsing Entity not exposing charset?

by McA (Curate)
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 romping around the Monastery: (11)
As of 2014-09-19 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls