PC Review


Reply
Thread Tools Rate Thread

Retrieving custom headers from an Outlook (2003) MailItem

 
 
Andrew
Guest
Posts: n/a
 
      14th Jan 2009
Environment: Visual Studio 2008
Language: VB.Net
Application: Outlook 2003

I seem to have come to a road block. I'm writing an application that needs
to get the header from an email in Outlook 2003. This needs to check every
existing mail that's opened.

One of the ways I found that could get the header was to use the CDO libary,
however, I also found that Microsoft doesn't officially support its usage
with managed .net code because of memory leaks. The work around was to create
a separate exe for the CDO functionality.I'm not sure how efficient that
would be since it needs to run everytime an email is opened.

Is my fear of it being extremely inefficient warranted? If so, is there a
plausible work around?

Thanks,
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      15th Jan 2009
Extremely inefficient, and also a source of memory leaks. You're logging
into and off of CDO.Session objects on each call?

For managed code and Outlook 2003 your options are limited. You can do what
you're doing now or you can use Redemption (www.dimastr.com/redemption) or
another API that works with managed code.

--
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


"Andrew" <(E-Mail Removed)> wrote in message
news:0B2874C7-5021-447B-8DB2-(E-Mail Removed)...
> Environment: Visual Studio 2008
> Language: VB.Net
> Application: Outlook 2003
>
> I seem to have come to a road block. I'm writing an application that needs
> to get the header from an email in Outlook 2003. This needs to check every
> existing mail that's opened.
>
> One of the ways I found that could get the header was to use the CDO
> libary,
> however, I also found that Microsoft doesn't officially support its usage
> with managed .net code because of memory leaks. The work around was to
> create
> a separate exe for the CDO functionality.I'm not sure how efficient that
> would be since it needs to run everytime an email is opened.
>
> Is my fear of it being extremely inefficient warranted? If so, is there a
> plausible work around?
>
> Thanks,


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem developing an outlook 2007 addin with c# - retrieving the mailitem.Body property pdgrimm Microsoft Outlook Program Addins 0 31st May 2012 12:04 AM
Retrieving custom headers from an Outlook MailItem Andrew Microsoft Outlook Program Addins 6 13th Jan 2009 09:31 PM
How can I create a MailItem that displays like a received MailItem ? Clive Microsoft Outlook Form Programming 0 27th Feb 2006 05:14 PM
How to avoid the outlook popup warning when retrieving an MailItem Michael H Microsoft Outlook Interoperability 5 16th Jan 2006 04:43 PM
Re: Get Outlook mailitem internet headers Message-id value for use in Dmitry Streblechenko \(MVP\) Microsoft Outlook VBA Programming 1 20th Sep 2004 06:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:51 PM.