A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Attachment - Downloads



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 2nd 08, 12:58 PM posted to microsoft.public.outlook.program_vba
Jithu
external usenet poster
 
Posts: 3
Default Attachment - Downloads

Hi All,

I have a code that downloads and save attachments from outlook mails....It
also send reply asking to attach files if attachment is missing in a mail.

The Problem is that, .jpg, .gif, files present in the mailbody(signature
images) is also considered as attachments. But i only want to check
attachments attached to the mail....

Can someone help me in solving this....
THANKS IN ADVANCE FOR ANY HELP...

Jithu
Ads
  #2  
Old January 2nd 08, 03:35 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Attachment - Downloads

Check each attachment for its Type. If it's anything other than
OlAttachmentType.olByValue then it's an attachment that's embedded in the
email and not a "true" attachment.

Be aware that the Type will only be valid for messages that are saved or
received. Also, in some cases you would have to also look at some MAPI
properties on the attachment to really trap every possibility. The
additional properties to check are only present on embedded attachments:

PR_ATTACH_CONTENT_ID: "urn:schemas:mailheader:content-id"

PR_ATTACH_CONTENT_LOCATION: "urn:schemas:mailheader:content-location"

You may also want to look at PR_ATTACH_MIME_TAG
("http://schemas.microsoft.com/mapi/proptag/0x370E001E")

All of those properties can be accessed if present in Outlook 2007 using the
PropertyAccessor object of the Attachment.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Jithu" wrote in message
...
Hi All,

I have a code that downloads and save attachments from outlook mails....It
also send reply asking to attach files if attachment is missing in a mail.

The Problem is that, .jpg, .gif, files present in the mailbody(signature
images) is also considered as attachments. But i only want to check
attachments attached to the mail....

Can someone help me in solving this....
THANKS IN ADVANCE FOR ANY HELP...

Jithu


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloads from Hotmail to OE6 George Outlook Express 6 September 7th 07 05:45 PM
Multipart downloads Opusita Outlook Express 9 March 17th 07 08:50 PM
OE6 locks during downloads George R. Thompson Outlook Express 7 December 24th 06 12:29 PM
Update Downloads Alasdair Mac Outlook - Installation 0 April 19th 06 11:06 PM
downloads e-mails more than once ssaslow Outlook - Installation 0 March 14th 06 01:24 PM


All times are GMT +1. The time now is 02:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.