Export Folder size to text file or post

  • Thread starter Thread starter Marc
  • Start date Start date
M

Marc

Hi there,

I'm kind of new to Outlook programming (in fact to programming as
whole) so please help me on this one.

Ppl. who use Outlook in a company as their main information an
communication managment tool will easily end up with a complete (read
complicated) structure with several sublevels within their Inbox
Combine this with a quota on the exchange server and your inbo
management starts to be become a real challenge. Now in the propertie
field I've noticed a Folder size button which displays the amount o
space every folders takes on the exhange server. When having a lot o
underlying folders, the window is just too small to display all th
information. This brings me to the following question: is there
method (code?) to export the values in this windows to a text file or
message (post item)?
Thanks a lot for your help on this one
 
To get the folder sizes in code is more complicated than you might
think. First you have to be using CDO 1.21 (optional installation for
Outlook 2000 and later as Collaboration Data Objects), Extended MAPI
(C++ or Delphi code only) or Redemption (a third party library located
at www.dimastr.com/redemption) to access the folder sizes in code. The
property tag you'd need to do that would be PR_MESSAGE_SIZE a Long
value that has a tag value of 0x0E080003.

That's for one folder. You'd have to start at the
TopOfInformationStore folder (Outlook Today) and dig down from there
to your top level mailbox folders (like Inbox) and then into
subfolders of each top level folder and so on down to subfolders of
subfolders and so on.

This would be the most accurate way since it includes not only message
sizes in the folders but also hidden items such as views and folder
rules and archiving rules and so on.

To get started with this see www.cdolive.com/cdo5.htm for examples of
CDO 1.21 coding and www.cdolive.com/cdo10.htm for examples of MAPI
property tags. This is not an easy project for someone new to Outlook
coding, much less a beginner in programming.
 
Back
Top