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:
$entity->recommended_filename(); # gets the real file-name
$entity->bodyhandle()->path(); # gets the internal name used by MIME::
+Parser in the tmp directory
Can someone tell me what I'm missing?
Thanks in advance!
Lobster Aliens Are attacking the world!