Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Which event is triggered when user saves email item?

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Which event is triggered when user saves email item?
"Kasper" <kasperbolarsen[ at ]gmail.com> 11.09.2006 19:25:16
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

Re: Which event is triggered when user saves email item?
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 11.09.2006 20:24:46
MailItem.Write event.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Kasper" <kasperbolarsen[ at ]gmail.com> wrote in message
news:1158002716.076760.217820[ at ]b28g2000cwb.googlegroups.com...
[Quoted Text]
> 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
>


Re: Which event is triggered when user saves email item?
"Kasper" <kasperbolarsen[ at ]gmail.com> 12.09.2006 15:14:46
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:

[Quoted Text]
> MailItem.Write event.
>

Re: Which event is triggered when user saves email item?
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 12.09.2006 17:05:55
SaveAs method in OOM or "Save As" menu command do not trigger the Write
event.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Kasper" <kasperbolarsen[ at ]gmail.com> wrote in message
news:1158074086.917945.273370[ at ]i3g2000cwc.googlegroups.com...
[Quoted Text]
> 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:
>
>> MailItem.Write event.
>>
>


Re: Which event is triggered when user saves email item?
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 22.09.2006 13:26:30
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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message news:OnzH90o1GHA.4752[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text]
> SaveAs method in OOM or "Save As" menu command do not trigger the Write
> event.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Kasper" <kasperbolarsen[ at ]gmail.com> wrote in message
> news:1158074086.917945.273370[ at ]i3g2000cwc.googlegroups.com...
>> 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:
>>
>>> MailItem.Write event.
>>>
>>
>
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net