code to check if an email only contains an image

L

lee.james

We're tired of getting spam that consists of just an image in the
message body, apparently Antigen, MS's IMF filter, and Outlook's own
junk rules can't seem to stop this kind of spam......

So we're wondering if we can make our own custom rule, 'on incoming
email run this script...'

The script would basically check the email to see if it contained an
embedded image and nothing else.

Is this possible? Can someone point me to a code sample?

Thx,

James
 
M

Michael Bauer [MVP - Outlook]

Embedded images have a property 'PR_ATTACH_CONTENT_ID' set. With Outlook's
object model you can't read that, instead you'd have to use CDO 1.21
(optional component from Outlook/Office CD) or Redemption from
www.dimastr.com.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am 2 Jan 2007 14:13:40 -0800 schrieb (e-mail address removed):
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top