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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Retrieving custom headers from an Outlook (2003) MailItem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 14th 09, 10:57 PM posted to microsoft.public.outlook.program_addins
Andrew
external usenet poster
 
Posts: 95
Default Retrieving custom headers from an Outlook (2003) MailItem

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,
Ads
  #2  
Old January 14th 09, 11:22 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Retrieving custom headers from an Outlook (2003) MailItem

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" wrote in message
...
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,


  #3  
Old January 15th 09, 03:28 AM posted to microsoft.public.outlook.program_addins
Andrew
external usenet poster
 
Posts: 95
Default Retrieving custom headers from an Outlook (2003) MailItem

Thanks a lot Ken, I figured as much that was the case.

"Ken Slovak - [MVP - Outlook]" wrote:

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" wrote in message
...
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,



 




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
Retrieving custom headers from an Outlook MailItem Andrew Add-ins for Outlook 6 January 13th 09 08:31 PM
Reading (Displaying) MailItem with Custom Form Paulem0071 Add-ins for Outlook 3 December 2nd 08 02:25 PM
Trying to open the new mailItem inspector form within a custom Win Naji Add-ins for Outlook 5 June 17th 08 02:30 PM
Spell check on custom MailItem form when replying István Becze Add-ins for Outlook 1 June 27th 07 02:14 PM
How to implement custom Outlook message headers? mistral Add-ins for Outlook 0 September 21st 06 11:04 AM


All times are GMT +1. The time now is 09:25 AM.


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.