Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Handling Multipart MIME types in an e-mail message

Handling Multipart MIME types in an e-mail message

Handling Multipart MIME types in an e-mail message

I'm trying to retrieve messages from a POP3 server using the POP3Client module, and display it via the web (web mail, basically). However, when I get a multi-part message (when Outlook Express for instance sends an html message), I can't get it to only display the html chucnk without *major* pattern matching. Is there a module that I can use to parse the entire message and return the correct part of the message? I looked at the MIME::Parser modules, but it looked to only handle parsing to and from files (which doesn't seem very helpful in my case). Is there code that will do this?



RE: Handling Multipart MIME types in an e-mail message

You were on the right track with the MIME part but in the whole package of the MIME-tools there is a decoder. Try working with that. You can use the URL below to find it at CPAN. I havn't actually used this yet as I am still working on the POP3 part or at least working with folders anyway. Hope this helps.


Glass Images

RE: Handling Multipart MIME types in an e-mail message

Thanks for the help. I've tried the decoder without much luck, though. It creates a zero length file in the main dir (beacuse I don't specify a path to the object), and doesn't do much else. Maybe I just haven't looked at it closely enough yet. I was pretty frustrated with it yesterday.

However, it sounds like we may be working on a lot of the same stuff... perhaps we could collaborate and speed up our development?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close