A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook Add-in Interaction with Desktop Search



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 2nd 07, 02:31 PM posted to microsoft.public.outlook.program_addins
Paul Lennon
external usenet poster
 
Posts: 2
Default Outlook Add-in Interaction with Desktop Search

Hi,

I have an Outlook add-in that works fine as the user moves about the
Outlook UI. They forward a message, I get the forward event. Same goes
for open and reply. Now our users want to use Windows Desktop Search
(WDS) and Google Desktop Search (GDS). Both of these applications
present a list of messages to the user from which they can open,
forward, reply and the like. Each of these actions transfers the user to
Outlook where the message appears ready for them to access.

My add-in receives the "open in Outlook" open event and behaves
correctly. I am not able to receive the reply, reply all and forward
events. I receive the open event because I monitor the Inspector
activate event and then hook all of the messages within the inspector
view. This works with the desktop search apps since their open passes
through the Inspector. Messages that are replied to or forwarded are
used as the template for a new message. I suspect that they are read and
that I should receive a read event. The inspector is activated only
after the forwarded message is created and made available for edit.

I receive message events because I registered my addin with each message
in the Inspector. Since the search app can find any message in the
entire mailbox does this mean that I need to register with every message
just so that I can learn when a message is being read? I know of
customers with 10s of thousands of messages per mailbox (one claims
100K), this seems like a brute force method. Is there a lighter way?
Does Outlook post an event that says "I am reading this message"?

Thanks for your help,

Paul
Ads
  #2  
Old February 2nd 07, 03:44 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook Add-in Interaction with Desktop Search

Obviously you can handle NewInspector and that will tell you something was
opened, you just have no way of knowing if it was opened as a forward or
reply or whatever without hacking at the subject and seeing if it has RE or
FWD in it and that's only good for English (a German reply would have AW).

Unless those search objects expose a programmable API there's no way to know
what they are showing. Handling a possible action on every item in every
folder of every open store is not practical. Even if you could set it up the
processing overhead would bring Outlook to its knees.

I'd probably try to do the best I could with NewInspector by checking for
EntryID = "" to see if it's a new item, checking for Body and HTMLBody being
blank and testing the subject for clues as to replies and forwards.

In a threaded conversation you can also use ConversationTopic to find other
emails in the same thread and guess about reply/forward.

The item.Read event only fires for an item where you are handling events, so
that's not practical.

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


"Paul Lennon" wrote in message
...
Hi,

I have an Outlook add-in that works fine as the user moves about the
Outlook UI. They forward a message, I get the forward event. Same goes for
open and reply. Now our users want to use Windows Desktop Search (WDS) and
Google Desktop Search (GDS). Both of these applications present a list of
messages to the user from which they can open, forward, reply and the
like. Each of these actions transfers the user to Outlook where the
message appears ready for them to access.

My add-in receives the "open in Outlook" open event and behaves correctly.
I am not able to receive the reply, reply all and forward events. I
receive the open event because I monitor the Inspector activate event and
then hook all of the messages within the inspector view. This works with
the desktop search apps since their open passes through the Inspector.
Messages that are replied to or forwarded are used as the template for a
new message. I suspect that they are read and that I should receive a read
event. The inspector is activated only after the forwarded message is
created and made available for edit.

I receive message events because I registered my addin with each message
in the Inspector. Since the search app can find any message in the entire
mailbox does this mean that I need to register with every message just so
that I can learn when a message is being read? I know of customers with
10s of thousands of messages per mailbox (one claims 100K), this seems
like a brute force method. Is there a lighter way? Does Outlook post an
event that says "I am reading this message"?

Thanks for your help,

Paul


  #3  
Old February 2nd 07, 05:21 PM posted to microsoft.public.outlook.program_addins
Paul Lennon
external usenet poster
 
Posts: 2
Default Outlook Add-in Interaction with Desktop Search

Hi Ken,

I agree, registering each item for events would be terrible. Presently I
see the NewInspector event and then the Open on the new message. You are
suggesting that I modify the new message during the Open event. That
makes sense. I was going through the message properties on a forwarded
message and I didn't see any references to the source message. Do you
know if Outlook tracks the original message id? Trying to match the new
message to one of many thousand others is going to be a bear too.

The desktop search apps are most likely calling in through a MAPI or CDO
API. I wonder if I can hook into that and intercept the forward/reply
request there?

Thanks for your help.

Paul
  #4  
Old February 2nd 07, 07:24 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook Add-in Interaction with Desktop Search

I'm not suggesting that you modify anything on the message. I suggested a
series of checks of:

EntryID: null string for new emails just being opened and never saved. Could
be new, reply, forward.

Subject: will have RE or FWD at beginning if the message is a forward or
reply.

ConversationTopic: Any earlier message in a thread will have the same
ConversationTopic, which can be searched for.

ConversationIndex gets longer by as I recall 20 bytes per message in a
thread. So message 1 will have a ConversationIndex length of X, message 2
(reply or forward) would have X + 20, etc.

Anything will be a hack, you just have to pick the hacks you want to use.

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


"Paul Lennon" wrote in message
...
Hi Ken,

I agree, registering each item for events would be terrible. Presently I
see the NewInspector event and then the Open on the new message. You are
suggesting that I modify the new message during the Open event. That makes
sense. I was going through the message properties on a forwarded message
and I didn't see any references to the source message. Do you know if
Outlook tracks the original message id? Trying to match the new message to
one of many thousand others is going to be a bear too.

The desktop search apps are most likely calling in through a MAPI or CDO
API. I wonder if I can hook into that and intercept the forward/reply
request there?

Thanks for your help.

Paul


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop Search and Outlook 2007. Ian Outlook - Installation 1 December 12th 06 08:46 PM
Desktop Search in Outlook 2007 beta 2 Lady Veteran Outlook - General Queries 2 September 15th 06 11:22 PM
Desktop Search update for Outlook 12 infoseeker_edward Outlook - Installation 4 July 1st 06 12:48 PM
Outlook 2007 / Desktop Search kw6575 Outlook - Installation 1 June 2nd 06 02:30 PM
programmatically add control for user interaction/feedback Loane Sharp Outlook - General Queries 1 May 24th 06 06:44 PM


All times are GMT +1. The time now is 09:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.