Windows SharePoint Services and crawling .MSG-files

Out of the box, SharePoint Services 3.0 cannot crawl MSG-files (saved Outlook-Mails). There are several commercial IFilters, but with a little configuration, you can use the IFilter from the Windows Desktop Search.

1. Install Windows Desktop Search

At first, you have to install Windows Desktop Search on your SharePoint Server. You can find Windows Desktop Search in the Microsoft download area. For the Windows Desktop Search we will get an IFilter for MSG-files from Microsoft.

2. Install MSG-IFilter

Microsoft delivers an IFilter for MSG-files. You can find it in the download area on the Microsoft homepage. You have to download and install this package.

3. Changes in the registry

The file extension and the IFilter have to be registered for the SharePoint Search. We need the following entries in the registry:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\Filters\.msg]
“Extension”=”msg”
“FileTypeBucket”=dword:00000001
“MimeTypes”=”application/vnd.ms-outlook”

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.msg]
@=hex(7):7b,00,34,00,30,00,33,00,39,00,62,00,33,00,32,00,36,00,2d,00,39,00,66,\
00,32,00,37,00,2d,00,34,00,62,00,34,00,61,00,2d,00,62,00,34,00,36,00,30,00,\
2d,00,34,00,37,00,61,00,30,00,63,00,36,00,61,00,33,00,39,00,64,00,35,00,63,\
00,7d,00,00,00,00,00

4. Restart SharePoint Services Search

To activate the changes in the registry, we need to restart the WSS search service. Open a command window and run

NET STOP SPSEARCH
NET START SPSEARCH

5. Start a full crawl

To crawl already existing MSG-files, a full crawl is needed. Open a command window and run

STSADM -o spsearch -action fullcrawlstop

STSADM -o spsearch -action fullcrawlstart

6. Deactivate Windows Search (optional)
Now, you may deactivate Windows Desktop Search. We just needed this component to install the IFilter. You can deactivate this service via Administrative Tools > Services.

Courtesy: http://olafdidszun.spaces.live.com

 

Advertisements