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

Tags: , , , , , , , ,

Outlook 2007 event sink bug - closing a modified displayed email





 
 
Thread Tools Display Modes
  #1  
Old September 18th 07, 04:16 PM posted to microsoft.public.outlook
aduckworth@bond.co.uk
external usenet poster
 
Posts: 1
Default Outlook 2007 event sink bug - closing a modified displayed email

I have been developing some new enhanced code for one of our products
that allows use to monitor emails that are being sent via Outlook. In
order to do this I am using the MAPI COM and specifically the event
sink generated by Outlook to signal events that have occured to an
email - such as Open, Sent, Saved, Closed, etc.



The software works fine under Outlook XP, 2003, etc but the event
trigger in Outlook 2007 is incorrect when you are closing a modified
email and effectively requesting it to be saved in the draft folder.



Let me explain:



Under 2003, you can use COM to create a new email and populate it with
the required info. If the user then click's on the X or close button,
Outlook will display the standard message 'Do you want to save the
changes to "xxxx"? If you click Yes, you will get 2 Save events
followed by a Close event. If you select No, you just get a Close
event. Cancel does nothing. This is fine and allows me to determine
what action the user has taken - saved to draft or cancelled the email
(Closed without saving).



Under 2007, the same method produces a different set of events. When
the user click's close or X you immediately get a close event and then
it displays the 'Do you want to save the changes to "xxxx"? question'.
This is incorrect, as it has not actually been closed yet. I may press
cancel, in which case its state is now wrong. If I select Yes, i do
then get a Save event, but its too late by then - I can no longer
determine the state of the email as there is no way of actually
determining if they have pressed No or Cancel (You can not wait for a
timeout to see if you get the Save event, the user may be busy and
ignoring the 'Do you want to save the changes to "xxxx"?' question,
nor is it practicale to trawl the draft folder looking to see if it
eventually appears there).



Does anyone know if this bug has been corrected in Outlook 2007 or
even reported? Does anyone know of a different method I could try to
determine the state of the email? I have tried phoning the developent
support, but they want to charge me to fix/look at the problem, which
is a little unfair, unless I can find a knowledge base article on it -
a catch 22 until it is fixed.

Ads
 




Thread Tools
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
Cancelling and closing a mailitem in itemsend event bstrum Add-ins for Outlook 1 June 19th 07 06:53 AM
I modified my outlook 2007 so I cannot see messages help? CHERYLYD1 Outlook - General Queries 0 May 17th 07 04:18 AM
HTML email displayed wrong in Outlook 2007 michaelzap@gmail.com Outlook - General Queries 16 December 12th 06 09:03 PM
Changes to Contact Item are not displayed if changed in New_Inspector-Event cs Add-ins for Outlook 1 December 8th 06 07:40 PM
Explorer closing before Item Add event fires?? AndyK Outlook and VBA 3 November 3rd 06 03:22 PM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Debt Consolidation - Loan - Mortgage - Free Credit Report - Dan brown