Easy question (I think) 
Author Message
 Easy question (I think)

I would like to write a VBA script that I can invoke from a rule whenever an
email arrives that:

1. checks if a certain string can be found in the "internet header" or SMTP
header of the message (e.g. X-Text-Classification: foo)
2. grabs the string after the colon (e.g. "foo")
3. And assigns that to a field (e.g. category) of the message

I'm a novice at VBA in outlook, and I've been able to write a script which
works on the message but I can't find any properties or methods which allow
me to examine the "internet header" of the message.

Can it be done?



Thu, 14 Jul 2005 04:15:38 GMT  
 Easy question (I think)
Outlook objects don't expose the SMTP header. You must use CDO or Redemption. See http://www.slipstick.com/dev/olforms/headers.htm for a sample.
--
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:

> I would like to write a VBA script that I can invoke from a rule whenever an
> email arrives that:

> 1. checks if a certain string can be found in the "internet header" or SMTP
> header of the message (e.g. X-Text-Classification: foo)
> 2. grabs the string after the colon (e.g. "foo")
> 3. And assigns that to a field (e.g. category) of the message

> I'm a novice at VBA in outlook, and I've been able to write a script which
> works on the message but I can't find any properties or methods which allow
> me to examine the "internet header" of the message.

> Can it be done?



Thu, 14 Jul 2005 04:50:40 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. TreeView Nodes: Easy question I think,

2. Easy Question (I think)

3. Easy Question (I think)

4. Easy Question...........I Think

5. easy question (i think)

6. Easy question...(I think)

7. Easy question..I think

8. Easy question, I think - Can you Debug.Print at runtime (not in IDE)?

9. Easy ADO Question (I Think)

10. EASY EASY EASY question

11. Really easy I think

12. I thought this would be easy!

 

 
Powered by phpBB® Forum Software