View Single Post
  #6  
Old June 21st 06, 04:57 PM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Counting Attachments in Messages

Am Wed, 21 Jun 2006 09:56:19 -0400 schrieb Ken Slovak - [MVP - Outlook]:

Thanks, Ken.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


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.

Ads