Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Outlook 2003 first email open problem

Geek News

Outlook 2003 first email open problem
Andy Larter <Andy.Larter[ at ]ArmourSoft.NoSpam.com> 2/13/2006 2:38:30 PM
Hi,

I'm having a problem with my Outlook 2003 addin.

My addin is required to process e-mails before the user reads the
text. When a new inspector is opened, my addin examines the body text
and if necessary processes the text and stores the result back into
the Body member.

This works fine for most of the time. Unfortunately it seems that
Outlook is replacing my body text when the first email is read. The
new inspector event gets fired, my processing runs and replaces the
body but by the time the email is displayed, the original text is back
in the Body member. After the first mail item is opened, the addin
works fine.

Can anyone suggest a work around for this problem? If I execute my
code in response to a toolbar button click, the processing works ok,
so at the minute I have to tell users to manually click the button the
first time they read a mail (which isn't very friendly).

Thanks in advance,

Andy

Re: Outlook 2003 first email open problem
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/14/2006 7:19:22 PM
Try waiting until the first Inspector.Activate event fires before making the
change and see what happens. Set a flag in that code so it won't run again
if the Inspector becomes deactivated and then re-activated.

--
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


"Andy Larter" <Andy.Larter[ at ]ArmourSoft.NoSpam.com> wrote in message
news:0c61v1hd78cs6o4r2rqi2d428t13ff2vat[ at ]4ax.com...
[Quoted Text]
> Hi,
>
> I'm having a problem with my Outlook 2003 addin.
>
> My addin is required to process e-mails before the user reads the
> text. When a new inspector is opened, my addin examines the body text
> and if necessary processes the text and stores the result back into
> the Body member.
>
> This works fine for most of the time. Unfortunately it seems that
> Outlook is replacing my body text when the first email is read. The
> new inspector event gets fired, my processing runs and replaces the
> body but by the time the email is displayed, the original text is back
> in the Body member. After the first mail item is opened, the addin
> works fine.
>
> Can anyone suggest a work around for this problem? If I execute my
> code in response to a toolbar button click, the processing works ok,
> so at the minute I have to tell users to manually click the button the
> first time they read a mail (which isn't very friendly).
>
> Thanks in advance,
>
> Andy
>

Re: Outlook 2003 first email open problem
Andy Larter <Andy.Larter[ at ]ArmourSoft.NoSpam.com> 2/20/2006 11:58:22 AM
Thanks Ken. It was a good suggestion but it still seems to be too
early. The body is still being replaced.

Andy.


On Tue, 14 Feb 2006 14:19:22 -0500, "Ken Slovak - [MVP - Outlook]"
<kenslovak[ at ]mvps.org> wrote:

[Quoted Text]
>Try waiting until the first Inspector.Activate event fires before making the
>change and see what happens. Set a flag in that code so it won't run again
>if the Inspector becomes deactivated and then re-activated.

Re: Outlook 2003 first email open problem
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/20/2006 2:51:51 PM
There has to be something else going on then. I've never seen Outlook behave
differently in this respect for the first email opened up and later ones.

Is this with WordMail only or the Outlook editor only or with either editor?
Anything like message format causing any differences (HTML, plain text,
RTF)?

--
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


"Andy Larter" <Andy.Larter[ at ]ArmourSoft.NoSpam.com> wrote in message
news:vkbjv19r4h407puljp1vv2p345prbp08qo[ at ]4ax.com...
[Quoted Text]
> Thanks Ken. It was a good suggestion but it still seems to be too
> early. The body is still being replaced.
>
> Andy.

Re: Outlook 2003 first email open problem
Andy Larter <Andy.Larter[ at ]ArmourSoft.NoSpam.com> 2/21/2006 5:26:39 PM
We are currently not suporting WordMail (this will be added in the
next version). The problem is exactly the same for plain text, HTML,
and rich text.



On Mon, 20 Feb 2006 09:51:51 -0500, "Ken Slovak - [MVP - Outlook]"
<kenslovak[ at ]mvps.org> wrote:

[Quoted Text]
>There has to be something else going on then. I've never seen Outlook behave
>differently in this respect for the first email opened up and later ones.
>
>Is this with WordMail only or the Outlook editor only or with either editor?
>Anything like message format causing any differences (HTML, plain text,
>RTF)?

Re: Outlook 2003 first email open problem
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/22/2006 3:17:03 PM
Well, I've still never seen that behavior in any of my addins so something
else must be going on.

--
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


"Andy Larter" <Andy.Larter[ at ]ArmourSoft.NoSpam.com> wrote in message
news:7mimv1pn5ug10qmlmgl1v2td127c2t1k8k[ at ]4ax.com...
[Quoted Text]
> We are currently not suporting WordMail (this will be added in the
> next version). The problem is exactly the same for plain text, HTML,
> and rich text.

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