Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook
Message
From
14/12/2001 10:46:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/12/2001 09:41:28
Mario Felisbino
Construtora Andrade Gutierrez S/A
São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00594376
Message ID:
00594426
Views:
21
>How to know how many messages have in my folders sent, inbox and others of Outlook Express?

I think Outlook express doesn't work with automation. For outlook you could do :
oOutlook = CREATEOBJECT( "Outlook.Application" )
oNameSpace = oOutlook.GetNameSpace('MAPI')
oInbox = oNameSpace.GetDefaultFolder( 6 )  && Inbox folder
for each loFolder in oInbox.Folders
 ? loFolder.Name, loFolder.Items.Count, loFolder.UnreadItemCount
endfor
oDeleted = oNameSpace.GetDefaultFolder( 3 )  && Deleted folder
oSent = oNameSpace.GetDefaultFolder( 5 )  && Sent folder
? oDeleted.Items.Count, oSent.Items.Count
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform