Outlook add-ins to search for mails satisfying some criteria

  • Thread starter Thread starter Anushya
  • Start date Start date
A

Anushya

Hi All

I need a add-ins in to search for all the items in the
inbox|outbox|deleted|or wotever folders of outlook matching some
criteria. Almost like outlook advanced search. Now trying this add-ins
using C#.net. s/w is not a issue.

Wot r all the ways i can do it?
1) using Advanced search of outlook itself by passing parameters to
it? is it possible? does the object model allow access to Advanced
search?

2)use something like a macro? can it be done? Or any other way?
passing values and getting results is it possible?

3)If i use restrict or find on each folder, can i search for the
content in the body too? Or it can be done only for standard headers
like subject, from, CC. Will there be a performance hit? if body can
be done pls gimme some idea..

4)Is it possible to access the outlook pst file straight and search
for using sth? I think it may not be possible. but is there any way?

Waiting for ur suggestions....Its urgentttttt..
pls let me know the links also..
Pls let me know immediately.
Anushya
 
You cannot use Body in a restriction or filter. You can use
Application.AdvancedSearch if you are using Outlook 2002 or later. The
syntax for AdvancedSearch is a DASL syntax. See the Object Browser for
examples of using that and the properties you need to work with.

If you set up a search in the UI using Advanced Find and go to the
Query Builder tab you will see the DASL syntax you will need to use.
To show the Query Builder tab add a registry key
HKCU\Software\Microsoft\Office\10.0\Outlook\QueryBuilder. Use 11.0 if
you are using Outlook 2003. The key just has to exist for the Query
Builder tab to be shown.
 
Back
Top