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

Fooling OOM about the "Sent" property



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 27th 06, 06:28 PM posted to microsoft.public.outlook.program_addins
arielra@gmail.com
external usenet poster
 
Posts: 1
Default Fooling OOM about the "Sent" property

Hello everyone.

I have a problem with my VSTO2005 addin for OL2003:
We catch the MailItem.Open event and immediately cancel the open
operation, and open a form of our own. This methodology works very nice
for us for mail items RECEIVED in the mailbox, but we encounter a
problem for items we CREATE locally (and do not send anywhere). The
same piece of code that cancels the opening of the inspector just
before opening our form simply delays so the mail edit screen is
briefly shown (a couple of seconds, machine dependant).
Keeping that in mind - we followed a tip from Sue - we create not a
MailItem but a PostItem and then convert it to IPM.Message. This works
well, but recently we noticed that this does NOT work for OL clients
who work in cached mode. Bummer.
We therefore decided to take another route in fooling OL that this item
was indeed sent: we want to create a regular message item but change
the required MAPI properties to make the OOM think it is indeed "sent
== true".
Any of you have any idea which properties I need to set, if this is
even possible (within reason) or have any other explanation to any of
the freakshows I described here?

Any help will be greatly appreciated.


Ariel
(Crosspost on:
http://www.outlookcode.com/threads.a...essageid=16634 )

Ads
  #2  
Old February 27th 06, 10:43 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Fooling OOM about the "Sent" property

Those properties on IPM.Note items are set by the MAPI transport and cannot
be set in code.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
oups.com...
Hello everyone.

I have a problem with my VSTO2005 addin for OL2003:
We catch the MailItem.Open event and immediately cancel the open
operation, and open a form of our own. This methodology works very nice
for us for mail items RECEIVED in the mailbox, but we encounter a
problem for items we CREATE locally (and do not send anywhere). The
same piece of code that cancels the opening of the inspector just
before opening our form simply delays so the mail edit screen is
briefly shown (a couple of seconds, machine dependant).
Keeping that in mind - we followed a tip from Sue - we create not a
MailItem but a PostItem and then convert it to IPM.Message. This works
well, but recently we noticed that this does NOT work for OL clients
who work in cached mode. Bummer.
We therefore decided to take another route in fooling OL that this item
was indeed sent: we want to create a regular message item but change
the required MAPI properties to make the OOM think it is indeed "sent
== true".
Any of you have any idea which properties I need to set, if this is
even possible (within reason) or have any other explanation to any of
the freakshows I described here?

Any help will be greatly appreciated.


Ariel
(Crosspost on:
http://www.outlookcode.com/threads.a...essageid=16634 )


  #3  
Old February 28th 06, 10:49 AM posted to microsoft.public.outlook.program_addins
Ariel
external usenet poster
 
Posts: 2
Default Fooling OOM about the "Sent" property

I'm glad to say the I had no need to enter the labirynth of those "MAPI
transport" properties.
Seems the OOM just looks at the PR_MESSAGE_FLAGS to know if the message
was sent or not... Simply turning off the "MSGFLAG_UNSENT" flag did the
trick. (it's the first bit).

 




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
Only when i forward emails with attachements "550 relaying mail to" [domain] "is not allowed" Alchemy Outlook - General Queries 4 March 9th 06 12:47 AM
"Resize with form" property on custom controls Vaughan Outlook - Using Forms 2 February 6th 06 09:03 PM
In Table View can I group by "Date" instead of "Start" KLM Outlook - Calandaring 1 January 11th 06 05:52 AM
Don't use "X" in outlook as delete icon, it looks like "close" HuskieChem Outlook - Installation 1 January 9th 06 03:02 AM


All times are GMT +1. The time now is 07:47 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.