View Single Post
  #5  
Old June 21st 06, 02:56 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Counting Attachments in Messages

Some embedded messages don't have a PR_CONTENT_ID property in the attachment
object. That's especially true if the item is an RTF email. Two other
properties also need to be checked for a complete solution:
PR_ATTACH_CONTENT_LOCATION (0x3713001E, a PT_STRING8 property that if it
exists means an embedded attachment) and PR_ATTACH_METHOD (0x37050003, a
PT_LONG property that if it equals 6 means an embedded attachment).

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Sue Mosher [MVP-Outlook]" wrote in message
...
The method Michael suggested is the one you need to use to determine whether
it's a "real" attachment.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


Ads