in reply to Re^2: 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?

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

  • Comment on Re^3: Need help parsing email using MIME::Parser ( mimeexplode )

Replies are listed 'Best First'.
Re^4: Need help parsing email using MIME::Parser ( mimeexplode )
by gossamer (Sexton) on Apr 01, 2015 at 00:24 UTC

    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?