Dan G. Switzer, II wrote:
> One of the problems I'm facing with an application is that I need to smartly
> parse out attachments from an e-mail.
> 
> This means I need to ignore attachments that are strictly for HTML
> formatting (such as footer images or ads,) but need to find attachments that
> might be embedded as screenshots/images.

If you receive proper HTML that has a distinction between structure and 
layout the images for formatting will only be referenced from the CSS 
and the images for content will be referenced from the HTML. If you do 
not receive proper HTML there is no way to distinguish between images 
embedded for structure and images embedded for layout. But you can still 
distinguish between embedded and attached images, the one is 
multipart/related and the other multipart/mixed.


> E-mails could be coming in from a variety of different users and different
> e-mail clients. Not all the clients would be using HTML-based e-mail, but
> most do.

If the message is plain text, how would somebody embed an image into it? 
Aren't all images attachments and aren't all attachments relevant?

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288078
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to