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

Sunday, January 13, 2008

File size limitation

Hi all,

Lately I faced a problem when tried to upload a huge size file and got an Oversize limitation error message,
searching the SharePoint administration came out with nothing.

I found the solution within the STSADM.EXE:

stsadm -o setproperty -propertyname max-file-post-size -propertyvalue 120 -url http://myportalserver/

The propertyvalue represent a numerical value, in megabytes (MB).

Make sure to set the site size limitation as well.

Monday, August 27, 2007

Send Link By Email - Broken URL

For a few weeks, we are facing a problem when trying to send a link to a document from the document library (This occurs only for documents with a non English file name).
Clicking on the "Send To-> Send Link By Email" opens the new message window, but with a broken URL to the document.



Last night I cleared some time for this issue. After searching the MOSS javascripts I found the solution !!!
Within the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1037 Directory (1037 is for the Hebrew version) there is a js file named CORE.JS, inside is located the AddSendSubMenu function, this function generate the "Send" sub-menu that appear when clicking on a list item.

In order to solve the broken URL problem, find this line:
fileUrl=escapeProperly(httpRootWithSlash.substr(0, slashLoc))+currentItemUrl;

And replace it with this line:
fileUrl=escapeProperly(httpRootWithSlash.substr(0, slashLoc))+currentItemEscapedFileUrl;


Save the file, and now after clicking the "Send Link By Email" .....


I hope this solution will be of use for you....