Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handling Multipart MIME types in an e-mail message

Status
Not open for further replies.

Hasenmyer

Programmer
Feb 29, 2000
8
US
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? <br>
<br>
Thanks.<br>
<br>
John
 
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.<br>
<br>
<A HREF=" TARGET="_new"> <p>Stanley<br><a href=mailto:webmaster@glass-images.com>webmaster@glass-images.com</a><br><a href= Images</a><br>
 
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.<br>
<br>
However, it sounds like we may be working on a lot of the same stuff... perhaps we could collaborate and speed up our development?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top