Search e-mail at lightspeed: using Lookout with Outlook 2007

Everybody who uses Microsoft Outlook must know that Outlook’s search functionality sucks. Yes, I know that’s a bold statement, but there’s no other way to say it. Outlook search sucks big time, period! Even Joel agrees… My mailbox is growing every day and I find it harder and harder to keep track of its contents. A search through my archived folders often takes a much as a full minute of searching, which I find unacceptable. In the press I often read Microsoft Corporation finds Search important and lately we’ve seen them release some impressive search products (i.e. Search Server 2008 and Search Server 2008 Express). Also a major part of my daily job involves implementing SharePoint 2007 solutions at our customers, which most of the time also includes SharePoint’s search feature. But somehow the Outlook team seems to have missed the boat…

Some years ago a guy called Mike Belshe created a great free Outlook add-in called Lookout, that offered a lightning fast search. Within seconds of starting a search (often even within a second!) the results would appear on screen. Microsoft was quick to buy his company and its technology. At that time many people expected Microsoft to integrate Lookout into Outlook, but unfortunately they seem to have shelved it (Mike himself claims some of his Lookout code ended up in Windows Desktop Search). So now there’s no official way to obtain Lookout. Luckily there are many sites that still offer the Lookout download. A quick search on Google should point you to some sites containing working download links.

However, getting Lookout to work with Outlook 2007 is more problematic. It turns out that Lookout checks for specific Office Primary Interop Assemblies (PIAs) and the PIAs that come with Outlook 2007 don’t pass this test. The result is that Lookout prevents itself from running under Outlook 2007 and instead displays this warning message:

Lookout error message

After much demand Mike Belshe published a way to get Lookout to work with Outlook 2007. For this you have to rename an Office PIA file, which resides in the Global Assembly Cache. While this solution gets Lookout to work, it may have serious impact on other applications/add-ins that make use of this PIA. So this solution isn’t acceptable for me (and it shouldn’t be for you!).

Instead I opted for a different approach. The only reason that Lookout doesn’t run on Outlook 2007 is that dreaded PIA check. So why not remove it? Which is exactly what I did…

A quick Reflector session revealed that the code that performs the PIA check is located inside the assembly named Inventures_Olk.dll and goes by the name of CheckOutlookInterop(). What it does is compare the installed Office PIA’s name to a built-in string constant. If the match is positive it returns the boolean value true, otherwise it returns false. Using ILDASM I decompiled the assembly to CIL, changed CheckOutlookInterop()‘s code to always return true and recompiled the assembly. So that gave me a fully working Lookout version that’s compatible with Outlook 2007!

You can download the patched assembly here. Just replace the the original Inventures_Olk.dll with the patched version and you should be searching your Outlook 2007 content a lightspeed in no time…

Oh yeah, there’s one small issue… It seems Lookout crashes while indexing if you run it on Vista. Bummer…

Update: Recently I discovered there’s another bug in Lookout that causes dates to be parsed incorrectly if you have the .NET Framework 2.0 installed. You can read more about it here. Fortunately someone has fixed this problem and also released a patched DLL that you can download.

Update 2: The DLL I patched and offer on this blog should work with Lookout version 1.3.0.24057. But as I understand that version of Lookout crashes during indexing on Vista and Windows 7. In the comments below user Stroth claims he got my patched DLL working with an older version of Lookout, a version that also works with Vista and Windows 7 and doesn’t crash. That’s good news, however I never tested that.

Posted on January 22, 2008, in microsoft, search and tagged , , , , , . Bookmark the permalink. 169 Comments.

  1. Cool!

    This fix is a real saver for Lookout users migrating to Office 2007.

    Now I just hope someone will find a solution to successfully run Lookout with Office 2007 on Windows Vista (without the Lookout indexer crashing Outlook).

    Leonel

  2. Wow, nice move, Leon! I’m using Copernic Desktop Search, which offers a pretty good Outlook search. But I’m going to try Lookout to see if it’s better.

  3. Great article! I’m using Lookout with Vista and have no problems! Just disable automatic indexing of new e-mails and do it manually.

  4. @Rob P: Even manual indexing doesn’t work for me on Vista… 😦

  5. Wow, your solution really works. I had uninstalled Lookout, because Mike’s solution (renaming the PIAs) broke some other add-ins I have installed. But your solution makes them all work again. Thanks again!

    Francisca

  6. Good.. Glad that you released it. I had the same fix done when i wrote the post but i did not publish it as it will lead to a user agreement violation of lookout (we decompiled the s/w which is not legal).

    -Prakash.

  7. I am now using Lookeen! Seems to be the perfect replacement for Lookout – unless the price of course.

    -J

  8. Absolutely brilliant solution. I am so happy that I can use LookOut again, now in Outlook 2007. Desktop Search and others are really not up to the same level as far as speed and accuracy are concerned. Thank you so much !
    Erik

  9. I am not able to get Lookout to index either.. no matter what folders I select.. it still crashes Outlook. Does anyone know of any tricks to index manually so as not to crash Outlook?

  10. @Jeff S: do you mean it crashes on Vista? Or do you experience crashes on Windows XP?

  11. Hi guys,

    I too have applied both fixes here and am having a problem when i run the indexer.

    I’m running Outlook 2007 on Vista, and have had strange results with the indexer. It always crashes Outlook when manually indexing for the first time. Often it crashes very early in the indexing process (just after having gathered all the folders and started indexing), but sometimes it takes a while to crash (got to about 90% before crashing once).

    Does anyone have any idea what would be causing this?

  12. I managed to get Lookout to work inside Vista and Outlook 2007 , by the following simple procedure:

    1) Install lookout
    2) Download and insert the patched Inventures_Olk.dll into the Lookout folder (C/:Programs/lookout). Just click overwrite. You can download the patched file here: http://www.wirwar.com/blog/wp-content/inventures_olk.zip
    3) Download and insert the patched Lookout.dll into the Lookout folder (C/:Programs/lookout). Just click overwrite. You can download the patched file here: http://www.scw.us/win/FixingLookout/lookout.dll

    Very simple!

  13. Mike I tried your solution with Vista, Outlook 2007, & Lookout130 and indexing still crashes. My Lookout was in C:Program FilesLookout SoftwareLookout, and not C:/programs/lookout

  14. I think Mike was just lucky. My patch and the other one mentioned don’t fix anything that I think can be related to the crash on Vista.

  15. Any reason why I can’t see the download of the patch? A ‘divine’ intervention from M$ perhaps? I hope not…Outlook 2007 search suck indeed, and this looks like a miracle…if I can get the files I need.

  16. Nevermind the above comment…It appears to be a Firefox thingy…again.

  17. hi, help. i was getting the same error above “lookout failed to start” i’ve replaced the Inventures_Olk.dll. the error has left but i’m still not seeing lookout on my tool bar (outlook 07). I expected to see it the same as in ol03. I also replaced lookout.dll after that. Am i missing something?

    I could really use your help. i use this every second for my job. 😦 thanks for your help
    paul

  18. Missing Toolbar
    I followed these instructions and changed the Inventures DLL and the CheckOutlook DLL, but I find no Lookout Toolbar.

    Now when I load up Outlook I get no errors. Lookout shows in the COM Add-ins part of the 2007 “Trustcenter” and the OutlookAddInShim.dll file is loaded there.

    What have I done wrong??

    HELP

  19. @Jer: What if you press the right mouse button on one of the visible toolbars in Outlook 2007? Do you see the Lookout toolbar in the menu that appears? Maybe the Lookout toolbar installed just fine, but is only hidden? You could also try re-installing…

  20. I have been using Lookout, patched, on Vista home premium / Office 2007 without issues for a few days now.

  21. I don’t know why my above install explanation did not work. For me it working flawlessly. I have also installed Lookout on several other VISTA/office 2007 machines, and there have been no problems. Please note that I have installed Lookout vers. 1.2 (Lookout120.exe).

    Patches have to be installede in the following folder:

    C:Program FilesLookout SoftwareLookout

    /Mike

  22. Darrell Smith's avatar Darrell Smith

    Sorry, I submitted an erroneous email address so resubmitting my question.

    This fix only worked partially for me. I repalced the Inventures_Olk.dll in my C:Program FilesLookout SoftwareLookout folder with the downloaded one. Now when I start Outlook I see the Lookout toolbar but I get a message “I’m sorry but a serious program error (Method ‘SupportsCatagorize’ in tupe ‘Chrome.Indexing.DocumentsEx’ from assembly ‘Lookout, Version 1.2.0.1924, Culture=nuetral, PublicKeyToken=null’ does not have an implementation.) occurred” error. I also get a similar error when I try to kick off the indexer.

    Any thoughts? Thanks again for the tool.

  23. Darrel, are you using Vista? There have been reports that Lookout doesn’t work well on Vista. Also you could check if you have the latest version of Lookout installed. I think I used V1.3.0, but I’d have to check.

  24. Darrell Smith's avatar Darrell Smith

    No I am not using Vista. I am on XP Pro SP2. I was using Lookout 1.2.0.1924.

    I unistalled 1.2.0.1924 and loaded 1.3.0.24057. This solved my problem and I am back using lookout!

    For those using MS Groove. I had the Trial version as a Outlook Add-in and Lookout never seemed happy until I Disabled that Add-in. I don’t know if this was relevant but I didn’t like Groove anyway and my problem is gone.

    Thanks for the help Leon!!

  25. Glad to see that that version upgrade solved your problems, Darrell.

  26. Uddhav Regmi's avatar Uddhav Regmi

    I did the same thing as mentioned here

    Mike Says:

    March 3rd, 2008 at 17:08:18
    I managed to get Lookout to work inside Vista and Outlook 2007 , by the following simple procedure:

    1) Install lookout
    2) Download and insert the patched Inventures_Olk.dll into the Lookout folder (C/:Programs/lookout). Just click overwrite. You can download the patched file here: http://www.wirwar.com/blog/wp-content/inventures_olk.zip
    3) Download and insert the patched Lookout.dll into the Lookout folder (C/:Programs/lookout). Just click overwrite. You can download the patched file here: http://www.scw.us/win/FixingLookout/lookout.dll

    Very simple!

    It still the same – it does start the index, but as soon as it reaches to some value – may be 10 %, it crashes

    Vista SP1 – Outlook 2007

    Any tips/suggestions

  27. Thank you, thank you, thank you. So much of my job requires quick access to all of the information that I have in emails, I was crippled without this tool. I archive into a new PST file each month, to keep them small enough to keep CD backups of all my email from the last 6 years.

    I feel whole again! 🙂

  28. This is great. I just been updated to OL2007 and was horrified at the built in searching and that LookOut wouldn’t work.
    I have noticed something though – in the search results window I used to be able to preview the message in a little pop up box when I hovered about the entry. On my XP SP2 machine this doesn’t display – it just flickers as it tries to draw the box. Its a bit of a pain, but not enough to make me leave LookOut.
    Anyone else notice this or have any idea what me be causing it?

  29. I’m having the same problem that Paul Davis and @Jer mentioned back in March. I’ve installed and everything seemed to go OK but there’s no Outlook toolbar. The toolbar isn’t a choice in the right-click menu either. Any suggestions?

  30. Where is this Inventures_Olk.dll file located? I can’t find it in my Office 2007 directories.

    Thanks.

  31. Ignore my question please. I should have read the postings carefully.

  32. I can confirm that the 2 patches that Mike posted have worked succesfully for me first time. It is great to have lookout back! Though unfortunately it has not worked on my colleagues computer with the exact same set up as mines (outlook 2003 + vista) so wether it will work or not is not certain but i recommend trying it.

  33. Still no luck with the toolbar (and it’s driving me crazy)!! I’ve tried uninstalling and then installing v1.2.0 and that doesn’t work either. The toolbar is just not an option from the right-click menu. Leon … can you help??!? Thanks!!

  34. Same problem here.
    Outlook 2007 on Windows XP. Lookout 1.3

    – Got the pop up with error message.
    – Replaced Inventures_Olk.dll
    – No error message, but no toolbar either 😦 (not in the right-click menu either)

    Tried reinstalling, restarting, to no avail.

    Is it possible to manually run lookout after Outlook is up to perhaps “wake up” lookout?

    Thanks for any help.

  35. @Roberto and SteveG: Sorry guys, but I can’t help you. It all works fine for me.

  36. For Roberto – did you check to see if lookout was disabled? i think this happened to me once. Check Help->Disabled Items. Probably you have to restart afterwards.

  37. How I Uninstall Look out form Outlook 2007 win xp?
    thank you for help
    d.

  38. I performed the replacement of the DLLs on Vista and Outlook 2007. It seems to work with Lookout Version 1.20, but *not* with 1.30, so make sure you patch the Lookout 1.20 version.

    I don’t know the difference between the lookout versions. Maybe somebody develops a patch for the “latest” 1.30 version?

  39. It works well.
    Lookout 1.20 and patches mentioned above.
    Vista Enterprice SP1, MS office 2007 SP1.

    Thanks all!

  40. Many many thanks. It was exactly what I was looking for.
    Works fine under XP+Outlook2007.

    Thank you!

  41. Works for me with Lookout 1.3 + Office 2007 + Windows XP. Thank you – it’s a real time-saver. Wonder why this functionality isn’t just built-into Outlook 2007.

  42. Had same problem with Lookout toolbar not showing up. XP, OL2007, and Lookout. Checked under Help->Disabled Items and found an item there which I enabled. Closed OL and restarted and Lookout began with indexing wizard starting up.

    Thanks for keeping this great software running on the new OL!

    -wb

  43. as one post noted … i am well again 🙂 thank you
    i did a small test and i was amazed (again)

    any plans for enhancements 😉

  44. Installed the two dl’s and Lookout 1.3 works on tablet xp and outlook 2007 Just for the main inbox. I can’t seem to add any of my offline/archive PST’s. I see them in the options tab, check the boxes, close the dialogue box but they don’t stick. Anyone seen this before???????

  45. Ok, this really sucks, I have tried *** EVERYTHING *** listed here and nothing works. I am using Vista 64 and no matter what I can’t get Lookout to index without crashing. I love Lookout and want it back. I’m running Outlook 2007 as well to make things worse. Lookout 120 doesn’t work – gives the traditional error that some other plugin has broken outlook etc. and lookout 130 fares better in 64bit but still fails as soon as you start to index anything. Help!!! We can put a man on the moon but we can’t get Lookout to work in Outlook 2007 on Vista 64 bit?

  46. I’ve seen several people post that under Vista, Outlook crashes when LookOut start indexing. I’m running Vista and I don’t have that problem. Maybe because I’m running 64-bit Vista?

  47. I originally wanted to comment to say THANK YOU. How’d I forget the thank you? This patch is a great help.

  1. Pingback: Sm

  2. Pingback: Outlook 2007, Vista, Spam Protection and Lightning Fast Search | VB

  3. Pingback: crankygeek » Blog Archive » Windows Desktop Search 4.0 is the bomb

Leave a comment