Win32OLE doesn't work with Outlook Express?

Hi there,

I am trying to retrieve some mails from my Outlook Express mail-box.

However, when using the ‘WIN32OLE.connect(‘Outlook
Express.Application’)’, I
will get the following error message:

WIN32OLERuntimeError: unknown OLE server: Outlook Express.Application' HRESULT error code:0x800401f3 Invalid class string from (irb):23:ininitialize’
from (irb):23:in `new’
from (irb):23

I have tried ‘Outlook’, ‘Outlookexpress’ with upper/lower case as well.
It
doesn’t work anyway.

It seems to me that WIN32OLE could support Outlook, but not Outlook
Express.
Is that true?

If so, would you guys please give me some ideas on how to accomplish my
task
of retrieving data from Outlook Express (*.dbx formats) using Ruby?

Regards and Thanks,
Bob

Hi baon,

I am trying to retrieve some mails from my Outlook Express mail-box.

However, when using the ‘WIN32OLE.connect(‘Outlook Express.Application’)’, I
will get the following error message:

Outlook Express doesn’t have a COM interface.

See here for some ways you can deal with .dbx files:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/230261

Cheers,
Dave

Hello,

In message “Win32OLE doesn’t work with Outlook Express?”
on 07/02/12, “baon” [email protected] writes:

I have tried ‘Outlook’, ‘Outlookexpress’ with upper/lower case as well. It
doesn’t work anyway.

It seems to me that WIN32OLE could support Outlook, but not Outlook Express.
Is that true?

Yes. because Outlook Express does not provide the OLE automation
interface, but Outlook does.
Win32OLE access the OLE automation interface.

Unfortunately, you can not control Outlook Express like Outlook
using any other Language (VBScript, Perl, Python, … etc.) which
access the OLE automation interface.

If so, would you guys please give me some ideas on how to accomplish my task
of retrieving data from Outlook Express (*.dbx formats) using Ruby?

Sorry, the site is written by Japanese only, but I hope
the following URL help you.
RubyでOutlook Expressのdbxファイルを読み、spamの統計をとってみる実験 - J0hn D0e の日誌

Regards,
Masaki S.

Hi Dave,

Thanks for your link.

Anyway, I think I will try to find a Ruby parser or something like that.
It
is not a easy task for me to integrate C++ with Ruby (using SWIG for
some
wrapping work maybe).

Regards and Thanks,
Bob
----- Original Message -----
From: “Dave B.” [email protected]
Newsgroups: comp.lang.ruby
To: “ruby-talk ML” [email protected]
Sent: Monday, February 12, 2007 7:10 PM
Subject: Re: Win32OLE doesn’t work with Outlook Express?

Hi baon,

I am trying to retrieve some mails from my Outlook Express mail-box.

However, when using the ‘WIN32OLE.connect(‘Outlook Express.Application’)’,
I
will get the following error message:

Outlook Express doesn’t have a COM interface.

See here for some ways you can deal with .dbx files:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/230261

Cheers,
Dave

Hi Masaki,

Your message is really helpful!
Thanks a great deal!

Regards,
Bob

----- Original Message -----
From: “Masaki S.” [email protected]
To: “ruby-talk ML” [email protected]
Sent: Monday, February 12, 2007 3:49 PM
Subject: Re: Win32OLE doesn’t work with Outlook Express?

Hello,

In message “Win32OLE doesn’t work with Outlook Express?”
on 07/02/12, “baon” [email protected] writes:

I have tried ‘Outlook’, ‘Outlookexpress’ with upper/lower case as well. It
doesn’t work anyway.

It seems to me that WIN32OLE could support Outlook, but not Outlook
Express.
Is that true?

Yes. because Outlook Express does not provide the OLE automation
interface, but Outlook does.
Win32OLE access the OLE automation interface.

Unfortunately, you can not control Outlook Express like Outlook
using any other Language (VBScript, Perl, Python, … etc.) which
access the OLE automation interface.

If so, would you guys please give me some ideas on how to accomplish my
task
of retrieving data from Outlook Express (*.dbx formats) using Ruby?

Sorry, the site is written by Japanese only, but I hope
the following URL help you.
RubyでOutlook Expressのdbxファイルを読み、spamの統計をとってみる実験 - J0hn D0e の日誌

Regards,
Masaki S.