Which event is triggered when user saves email item?

K

Kasper

Hi Group,

I am working on an outlook add in based on
http://www.microeye.com/resources/template.htm in VB 6.0. I now need to
respond to the event that is triggered when the user saves the email
item by either using "save" or "Save as". I have done the usual
googling but so far I haven't found any clues.

Any ideas are most welcome. TIA


Kasper Bo Larsen
 
K

Kasper

Dmitry,
based on your answer I added a breakpoint in the MailItem.Write event
and to me it sure looks like the Write event is not triggered each time
the "Save" or "Save as" is activated, strange.....
The idea behind my add in is to search the mailitem body for a specific
mail reference number. Based on this reference number I am able to look
up the path to the place where I store the correspondence with that
specific customer. This path should then be should in the "Save As"
dialog as the default path.
As far as I can understand from various use groups it is not possible
to set the InitDir of the save dialog in Outlook. I looked into the
possibility to modify the registry entry that specified the default
path, but since my users are not admins on their PCs I could not
proceed down that road.
I have more or less given up on the idea to respond to the Save/Save as
event and am now looking at the option to add a special menu item in
the right-click menu.
Any good idea or suggestions are most welcome


Dmitry Streblechenko skrev:
 
S

Sue Mosher [MVP-Outlook]

Save also won't trigger an event if the item is not "dirty," i.e. if MailItem.Saved = True.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top