|
|
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
|
|
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 - "necnec" <u46802[ at ]uwe> wrote in message news:8b6c3f8099997[ at ]uwe...
[Quoted Text] > 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 >
|
|
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 Streblechenko wrote:
[Quoted Text] >No, not unless you hack the format of the registry key where Outlook stores >the list of disabled extensions. > >> Hello, >> >[quoted text clipped - 6 lines] >> 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
"necnec" wrote:
[Quoted Text] > 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 Streblechenko wrote: > >No, not unless you hack the format of the registry key where Outlook stores > >the list of disabled extensions. > > > >> Hello, > >> > >[quoted text clipped - 6 lines] > >> Thanks, > >> Nec > >
|
|
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
Dave Vespa [MSFT] wrote:
[Quoted Text] >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
-- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.aspx/outlook-prog-addins/200810/1
|
|
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" <u46802[ at ]uwe> wrote in message news:8bdba3952b80e[ at ]uwe...
[Quoted Text] > 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 > > Dave Vespa [MSFT] wrote: >>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 > > -- > Message posted via OfficeKB.com > http://www.officekb.com/Uwe/Forums.aspx/outlook-prog-addins/200810/1>
|
|
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 Streblechenko wrote:
[Quoted Text] >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
-- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.aspx/outlook-prog-addins/200810/1
|
|
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" <u46802[ at ]uwe> wrote in message news:8c19ec5e60d12[ at ]uwe...
[Quoted Text] > 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 Streblechenko wrote: >>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 > > -- > Message posted via OfficeKB.com > http://www.officekb.com/Uwe/Forums.aspx/outlook-prog-addins/200810/1>
|
|
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 Streblechenko wrote:
[Quoted Text] >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
-- Message posted via http://www.officekb.com
|
|
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" <u46802[ at ]uwe> wrote in message news:8c24798722767[ at ]uwe...
[Quoted Text] > 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 Streblechenko wrote: >>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 > > -- > Message posted via http://www.officekb.com>
|
|
|
|
|