Click here to get back home

MSG Filter does not use MAPI ?

 HomeNewsGroups | Search | About
 microsoft.public.msn.search    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
MSG Filter does not use MAPI ? wzhao2000 05-03-2006
Posted by wzhao2000 on May 3, 2006, 5:44 pm
Please log in for more thread options
We want to build some library to parse MSG files without using MAPI.
But so far we could not find a solution...

It seems the MSGFilter for WDS does not depend on MAPI. I created a
IFilter client and called the IFilter Init(), GetChunk(), ... methods,
MAPI library was not loaded during the whole process. Does anyone know
if MsgFilter uses some internal APIs for this (a.k.a., parsing MSG
files) ? If not, how is the compressed RTF body handled then?

Thanks!


Posted by MSG Expert on May 14, 2006, 10:19 pm
Please log in for more thread options
The website for the new MSG ifilter expressly states that you need outlook
2000 or better. I still expect that the msg ifiliter uses mapi.

As an alternative though, you could build your own with this:

Priasoft has several MSG related products. http://www.priasoft.com

In particular, they have a MSG file parsing library that gives developers
access to all the properties of a .msg file, without outlook.

They also have an export library that works with the MSG library for
exporting msg files to other formats, like PDF, TIF, and HTML.

For PST files, they have a couple of command line tools that allow
extraction of messages to MSG, again without requiring outlook, and it
supports both ANSI and UNICODE pst files. There is also the reverse, a MSG
to PST utility.

They also have a viewer product that looks very similar to outlook 2003 with
regards to the User Interface. The viewer can view, search, print, and export
msg files.

Lastly, they just release a free ViewOnly viewer here:
http://www.priasoft.com/msgview.exe


Regards,
the MSG Guru, Eriq VanBibber

"wzhao2000@gmail.com" wrote:

> We want to build some library to parse MSG files without using MAPI.
> But so far we could not find a solution...
>
> It seems the MSGFilter for WDS does not depend on MAPI. I created a
> IFilter client and called the IFilter Init(), GetChunk(), ... methods,
> MAPI library was not loaded during the whole process. Does anyone know
> if MsgFilter uses some internal APIs for this (a.k.a., parsing MSG
> files) ? If not, how is the compressed RTF body handled then?
>
> Thanks!
>
>

Posted by Tanuj Gupta on June 29, 2006, 1:35 pm
Please log in for more thread options
Hi,
Yes, you are right!
"The MSG IFilter in WDS does not use MAPI".
So as an answer to your question, in very short i'll say that for parsing of
MSG files, the MSG filter used in WDS actually treats the MSG file as a
compound document (i.e. a structured storage document) and parses the file
using "Storages & Streams".

I mean the MSG file has compound file format. So it can virtually be
represented in a directory structure where: the "Storages" are like the
"folders" and the "Streams under them are like the "files".

Every storage can have some storages and streams as its children. And the at
the leaf node there is a stream. (that is the actual data in the file).

For implementing storages and streams, there are interfaces you can use like
"IStorage" & "IStream".

Hope this helps. :)

Cheers!!
Tanuj

"wzhao2000@gmail.com" wrote:

> We want to build some library to parse MSG files without using MAPI.
> But so far we could not find a solution...
>
> It seems the MSGFilter for WDS does not depend on MAPI. I created a
> IFilter client and called the IFilter Init(), GetChunk(), ... methods,
> MAPI library was not loaded during the whole process. Does anyone know
> if MsgFilter uses some internal APIs for this (a.k.a., parsing MSG
> files) ? If not, how is the compressed RTF body handled then?
>
> Thanks!
>
>

Similar ThreadsPosted
Search Dev Question: mapi urls returned are not so good... May 2, 2006, 3:01 am
How to Apply Directory Filter to Windows Desktop Search April 3, 2007, 11:39 pm
Outlook 2003 Junk Mail Filter not working after installing WDS October 15, 2006, 11:44 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap