Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Need help parsing email using MIME::Parser

by gossamer (Sexton)
on Mar 31, 2015 at 23:40 UTC ( [id://1122088]=note: print w/replies, xml ) Need Help??


in reply to Re: Need help parsing email using MIME::Parser
in thread Need help parsing email using MIME::Parser

Yes, thanks, of course I knew that, but isn't it possible to read from the file since it's already opened?
  • Comment on Re^2: Need help parsing email using MIME::Parser

Replies are listed 'Best First'.
Re^3: Need help parsing email using MIME::Parser ( mimeexplode )
by Anonymous Monk on Mar 31, 2015 at 23:52 UTC

    Yes, thanks, of course I knew that, but isn't it possible to read from the file since it's already opened?

    Um, what file are you talking about?

    Use mimeexplode to unpack an email into a directory

    Then use any which way or Path::Tiny to read the files that got unpacked, they're like regular files at this point, not emails

      I meant that it already decodes it from the file being piped to STDIN, I just assumed there was also a function that allowed me to read that decoded stream as well.

      The output file that's created is already decoded, so I don't need any further MIME tools.

      I was also curious why the for() loop fails for $entry->parts for some reason. Isn't that a check for an encoded body or attachment?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-03-29 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found