Thread
:
code to check if an email only contains an image
View Single Post
#
2
January 3rd 07, 06:15 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
Posts: 1,885
code to check if an email only contains an image
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?...4&languageid=1
(German:
http://www.VBOffice.net/product.html?pub=6
)
Am 2 Jan 2007 14:13:40 -0800 schrieb
:
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
Michael Bauer [MVP - Outlook]
View Public Profile
View message headers
Find all posts by Michael Bauer [MVP - Outlook]
Find all threads started by Michael Bauer [MVP - Outlook]
Ads