See if a Outlook.Mailtem is a .msg-file or an item in a folder 
Author Message
 See if a Outlook.Mailtem is a .msg-file or an item in a folder

I am building a COM Add-In in Outlook. This will execute
whenever an mailitem is opened, but I don't want it to
execute if the mailitem is a .msg-file.

My problem is that I don't know how to see if it is a .msg-
file or if it is an item opened by, for example, double-
click on it in Inbox.

/Bo



Tue, 05 Apr 2005 16:46:13 GMT  
 See if a Outlook.Mailtem is a .msg-file or an item in a folder
Every Mailitem message in Outlook has the Message Class =
IPM.Note.  Not sure if you are looking for this.

Let us know what exactly you mean by .msg file...are you
referring to the attachments?

Regards
Natarajan

Quote:
>-----Original Message-----
>I am building a COM Add-In in Outlook. This will execute
>whenever an mailitem is opened, but I don't want it to
>execute if the mailitem is a .msg-file.

>My problem is that I don't know how to see if it is
a .msg-
>file or if it is an item opened by, for example, double-
>click on it in Inbox.

>/Bo
>.



Sun, 24 Apr 2005 21:37:24 GMT  
 See if a Outlook.Mailtem is a .msg-file or an item in a folder
I haven't tried it, but you might check the Parent property.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
     Microsoft Outlook Programming: Jumpstart
     for Administrators, Power Users, and Developers
     http://www.slipstick.com/books/jumpstart.htm

Quote:

> >-----Original Message-----
> >I am building a COM Add-In in Outlook. This will execute
> >whenever an mailitem is opened, but I don't want it to
> >execute if the mailitem is a .msg-file.

> >My problem is that I don't know how to see if it is
> a .msg-
> >file or if it is an item opened by, for example, double-
> >click on it in Inbox.



Sun, 24 Apr 2005 22:23:45 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. HOW TO in VB :Outlook MSG DROP in Explorer creates a MSG File

2. Explorer-like interface to Outlook items with mixed type items in a folder

3. Save .msg attachment to Outlook folder

4. Copy msg attachment to Outlook Folder

5. Xfering .msg files from file system to MAPI folder using VBA

6. Please Help with file .msg (Outlook file)

7. Need Outlook macro to recurse outlook folders and create PDF file of each email

8. Counting Items In Outlook Folders

9. Need Outlook macro to recurse mail folders and print each item

10. Item-level permission in outlook folder

11. Processing items in an outlook folder

12. Setting Outlook Sent Items Folder

 

 
Powered by phpBB® Forum Software