How can I get the information in outlook express?

  • Thread starter Thread starter daniel pan
  • Start date Start date
D

daniel pan

Hi£¬everybody!
I am write a program to geather infomation in outlook express 6.
The infomation I want to retreive is the mail content and the folder it
belongs. And the contact infomation is the info I want to get too.
Does any one know which tech I should to be used. If this is not the
place to discuss the problem like this, can you give me the group name about
it?

Thanks.
Daniel Pan
 
daniel pan said:
I am write a program to geather infomation in outlook express 6.
The infomation I want to retreive is the mail content and the
folder it
belongs. And the contact infomation is the info I want to get too.
Does any one know which tech I should to be used. If this is not
the
place to discuss the problem like this, can you give me the group name
about it?

There's no official APIs for Outlook Express:
http://support.microsoft.com/kb/q216281/

Note that there _is_ some documentation in MSDN, but it's not useful
documentation, as far as I know it's only there because of the
"Microsoft has secret APIs" lawsuit a while ago.

If you google for "oe5dbx", that's a thing someone wrote to get at the
contents of DBX files, though the main site is dead now so you'll have
to either look in archive.org or find a mirror.

Contacts live in the address book, I think. See the documentation for
"Windows Address Book" in MSDN:

http://msdn.microsoft.com/library/default.asp?
url=/workshop/wab/wabentry.asp

-- dan
 
Dan Mitchell said:
Note that there _is_ some documentation in MSDN, but it's not useful
documentation, as far as I know it's only there because of the
"Microsoft has secret APIs" lawsuit a while ago.

Correction, I'm wrong -- there is documentation there now, and while it's
just reference, it looks as if there's enough there to do most things:

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/outlookexpress/oe/reference/ifaces/istorenamespace/initialize.asp

-- dan
 
Actually, if you look closely at the docs that start at
http://msdn.microsoft.com/library/en-us/OutlookExpress/oe/oe_entry.asp,
you'll see that many of the interfaces are listed as deprecated or
"Not currently supported."

Yeah, a lot of them aren't there, and there's not really much of a guide
as to how to do it -- that said, after a few minutes looking through the
docs, I reckon you should be able to start OE and get to a message with:

1. CoCreateInstance an IStoreNamespace
2. IStoreNamespace::Initialize() on that
3. IStoreNamespace::OpenFolder
4. IStoreFolder::GetFirstMessage/GetNextMessage
5. Use the MESSAGEID from that to IStoreFolder::OpenMessage
6. Now you have an IMimeMessage that you can poke around at;
GetTextBody/whatever.

-- dan
 
Back
Top