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?