Wednesday, January 16, 2008

MOSS Search for emails and attachments context

Some of our customers requested to have the ability to search context within email messages and within its attachments.

Searching the web for a solution came with results that indicate that a third-party development is needed to achieve this ability...
Then I found Gavin Adams post and Tom Vandaele post that wrote that the ability to deep search within msg files is a MOSS out-of-the-box option that need to be configure.

Followed their instructions I tried to search context in a docx file attachment with in a msg file that was uploaded to a document library. I succeed to get the msg file by searching its context , but failed to get results related to the email's attachments.

After some tests of my own, I figure out that the registry should look like that:
  1. Make sure that this key exists in the MOSS registry
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.msg
  2. Add these keys and values to the .msg
    “Extension”=”msg”
    “FileTypeBucket”=dword:00000001
    “MimeTypes”=”application/msoutlook”


The MimeTypes application/msoutlook is the one I use to gain the deep search ability (couldn't do it using the MimeTypes = application/vnd.ms-outlook)


A note to those of you using hebrew documents, I checked it and it's working for hebrew attachments as well.

Lirliron

161 comments: