laziness, impatience, and hubris | |
PerlMonks |
Translating cid: image src to real filenameby cfreak (Chaplain) |
on Jul 28, 2003 at 17:58 UTC ( [id://278523]=perlquestion: print w/replies, xml ) | Need Help?? |
cfreak has asked for the wisdom of the Perl Monks concerning the following question: Forgive me monks for asking a silly question but I can't seem to find an answer anywhere on this site or google. I'm writing yet another web-mail client to learn and because I need something more customizable than what I'm finding already availiable. So far things have gone pretty well but I'm having trouble displaying inline images. When I receive an HTML email I try to parse it and map any images that have src="cid:<something here>" to the actual filename that is attached to the email. The problem is that the cid field doesn't seem to contain the actual filename rather, what looks like a hex string with some dollar signs etc. I assume that this information is with the actual attachment somewhere but I can't seem to figure out how to get it. I'm using MIME::Parser to parse the emails and the only filename information I can seem to get is:
Or:
Can someone tell me what I'm missing? Thanks in advance! Lobster Aliens Are attacking the world!
Back to
Seekers of Perl Wisdom
|
|