Disabling Exchange client extension from add-in

N

necnec

Hello,

I'm writing an add-in to OL2003. When doing some activity, I need to disable
temporarily one of the Exchange Client Extensions (PGP, if it matters).

Is there some way to do it programatically?

Thanks,
Nec
 
D

Dmitry Streblechenko

No, not unless you hack the format of the registry key where Outlook stores
the list of disabled extensions.

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

necnec

Thanks Dmitry.

The reason I've looked to disable it, is that there is some resource leak,
when I move more than 20-30 messages, causing the PGP extension to pop an
error message three times for every message.

Looking at the Redemption FAQ (I'm not using Redemption yet), I've added
calls to GC.Collect, and I've skipped using MailItem object for each copy,
using Selection.item.move directly.
It helped a lot.

I have two more questions:
1. Even though I turn of the preview pane before moving messages, still a PGP
window comes up whenever I'm going over an encrypted message. (I turn the
pane of by ShowPane(,off)).
I don't see this behavior when turning the pane off from OL menus.

2. Is there a more efficient way to copy messages, aside of going one by one?

Thanks again,
Nec

Dmitry said:
No, not unless you hack the format of the registry key where Outlook stores
the list of disabled extensions.
[quoted text clipped - 6 lines]
Thanks,
Nec
 
D

Dave Vespa [MSFT]

Hi Nec,

Could you please describe your problem with the PGP extension in more
detail? I am working on a similar issue within Outlook and I would like to
know if it's related.

What is the exact error message you are experiencing?

What steps do you need to take to see this problem?

Thanks,
Dave

necnec said:
Thanks Dmitry.

The reason I've looked to disable it, is that there is some resource leak,
when I move more than 20-30 messages, causing the PGP extension to pop an
error message three times for every message.

Looking at the Redemption FAQ (I'm not using Redemption yet), I've added
calls to GC.Collect, and I've skipped using MailItem object for each copy,
using Selection.item.move directly.
It helped a lot.

I have two more questions:
1. Even though I turn of the preview pane before moving messages, still a PGP
window comes up whenever I'm going over an encrypted message. (I turn the
pane of by ShowPane(,off)).
I don't see this behavior when turning the pane off from OL menus.

2. Is there a more efficient way to copy messages, aside of going one by one?

Thanks again,
Nec

Dmitry said:
No, not unless you hack the format of the registry key where Outlook stores
the list of disabled extensions.
[quoted text clipped - 6 lines]
Thanks,
Nec
 
N

necnec via OfficeKB.com

Hello Dave,

What I'm doing is copying messages from one folder to another.
When the number of messages is in the area of up to 100, it is usually OK.
But, when the number is bigger, I get the message box:
"The add-in "pgpExch.dll" could not be installed or loaded. This problem may
be resolved by using Detect and Repair on the Help Menu"

What else may or may not be connected, is that even when I turn off the
preview pane, when I reach a message which is PGP, the PGP dialog box to
enter the passphrase pops-up.
On the other hand, when I go over the messages with the arrows/mouse, and the
preview pane is off, this dialog does not come up.

Of course, when I copy/move messages by drag&drop, I see no such issue. I
don't know how is it implemented inside outlook.

If you have any further information, I'd love to hear it.

Thanks,
Nec
Hi Nec,

Could you please describe your problem with the PGP extension in more
detail? I am working on a similar issue within Outlook and I would like to
know if it's related.

What is the exact error message you are experiencing?

What steps do you need to take to see this problem?

Thanks,
Dave
Thanks Dmitry.
[quoted text clipped - 26 lines]
 
D

Dmitry Streblechenko

That error is usually an indication that you are accessing the
Explorer.Selection collection and Outlook opens all selected messages and
runs out of the 255 RPC channels limit in the online mode.
The name of the ECE might not mean much.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
necnec via OfficeKB.com said:
Hello Dave,

What I'm doing is copying messages from one folder to another.
When the number of messages is in the area of up to 100, it is usually OK.
But, when the number is bigger, I get the message box:
"The add-in "pgpExch.dll" could not be installed or loaded. This problem
may
be resolved by using Detect and Repair on the Help Menu"

What else may or may not be connected, is that even when I turn off the
preview pane, when I reach a message which is PGP, the PGP dialog box to
enter the passphrase pops-up.
On the other hand, when I go over the messages with the arrows/mouse, and
the
preview pane is off, this dialog does not come up.

Of course, when I copy/move messages by drag&drop, I see no such issue. I
don't know how is it implemented inside outlook.

If you have any further information, I'd love to hear it.

Thanks,
Nec
Hi Nec,

Could you please describe your problem with the PGP extension in more
detail? I am working on a similar issue within Outlook and I would like
to
know if it's related.

What is the exact error message you are experiencing?

What steps do you need to take to see this problem?

Thanks,
Dave
Thanks Dmitry.
[quoted text clipped - 26 lines]
Thanks,
Nec
 
N

necnec via OfficeKB.com

Hello Dmitry, and thanks again.

What is the best way to overcome this limitation?
I call GC.Collect after every message.

Will it help if I'll move outlook to offline mode during this copy/move?
Can I do it at all?

Is there a better way to move selected message from folder to folder?

Thanks,
Nec

Dmitry said:
That error is usually an indication that you are accessing the
Explorer.Selection collection and Outlook opens all selected messages and
runs out of the 255 RPC channels limit in the online mode.
The name of the ECE might not mean much.
Hello Dave,
[quoted text clipped - 39 lines]
 
D

Dmitry Streblechenko

There is nothing you can do if you are in the online mode (as opposed to
cached).

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
necnec via OfficeKB.com said:
Hello Dmitry, and thanks again.

What is the best way to overcome this limitation?
I call GC.Collect after every message.

Will it help if I'll move outlook to offline mode during this copy/move?
Can I do it at all?

Is there a better way to move selected message from folder to folder?

Thanks,
Nec

Dmitry said:
That error is usually an indication that you are accessing the
Explorer.Selection collection and Outlook opens all selected messages and
runs out of the 255 RPC channels limit in the online mode.
The name of the ECE might not mean much.
Hello Dave,
[quoted text clipped - 39 lines]
Thanks,
Nec
 
N

necnec via OfficeKB.com

As far as I can see I am in Exchange Cached mode. Does this mean that there
is a solution?

Also, how does outlook does the copying of mutiple messages, and can I use
the same method?

Thanks,
Nec

Dmitry said:
There is nothing you can do if you are in the online mode (as opposed to
cached).
Hello Dmitry, and thanks again.
[quoted text clipped - 19 lines]
 
D

Dmitry Streblechenko

This has nothign to do with copying messages, but rather with accessing the
Explorer.Selection collection.
You might also want to look at
http://blogs.msdn.com/dvespa/archive/2008/10/22/desktop-heap-to-outlook-i-am-exhausted.aspx

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
necnec via OfficeKB.com said:
As far as I can see I am in Exchange Cached mode. Does this mean that
there
is a solution?

Also, how does outlook does the copying of mutiple messages, and can I use
the same method?

Thanks,
Nec

Dmitry said:
There is nothing you can do if you are in the online mode (as opposed to
cached).
Hello Dmitry, and thanks again.
[quoted text clipped - 19 lines]
Thanks,
Nec
 
N

necnec via OfficeKB.com

Thanks a lot Dmitry! I've changed to the logic of my app to release Explorer.
Selection every x messages, and it works like a charm.

Nec

Dmitry said:
This has nothign to do with copying messages, but rather with accessing the
Explorer.Selection collection.
You might also want to look at
http://blogs.msdn.com/dvespa/archive/2008/10/22/desktop-heap-to-outlook-i-am-exhausted.aspx
As far as I can see I am in Exchange Cached mode. Does this mean that
there
[quoted text clipped - 14 lines]
 

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