![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |