Win32ole with Outlook2010 read email

I am using the first script from this blog to read email from my inbox
but I get no email in the output.
The output is:

“OlMailItem = 0”
[email protected]
Deleted Items
Inbox
Unable to open
+Public Folders - [email protected]
Favorites
All Public Folders
You have 0 new message(s)

Any help would be appreciated.