-
Outlook Mailbox Size
I've done a lot of coding in Outlook with VBA but there has always been this one problems that eludes me.
Can someone please tell me how to get the mailbox size? Like, when you go to your mailbox's properties and you click Folder Size. You get this window that instantly tells you how many kb are in each folder and a total for the whole mailbox. I only need to the total mailbox size.
I would think that it should be a property of the NameSpace but I can't find it. Maybe it doesn't even exist. Perhaps it's a special routine.
-
Re: Outlook Mailbox Size
Oh, an new Outlook question that has't been asked before :thumb:
What version of Outlook are you using and what mode is the mailbox in?
Exchange Mailbox or pst file?
Also, you are still doing this from Outlooks VBA or from VB?
-
Re: Outlook Mailbox Size
I'm using Outlook 2000 and XP. The mailboxes are Exchange mailboxes. And I'm using VBA.
Thank you.
-
Re: Outlook Mailbox Size
Looks like it can only be accessed using CDO 1.2x
:(
If I find any code snippletts I will post it, but I could use this feature too, so
one of these days when I get some time i may try to write one.
-
Re: Outlook Mailbox Size
Thanks. I know some CDO so I can start looking into that. I understand you haven't spent anytime figuring this one out, but if you could, do you have any vague ideas or direction on where to look in CDO?
Again, Thank you.
-
Re: Outlook Mailbox Size
Sure, I did spend some time researching the CDO method for accessing it. The constant is
CdoPR_MAILBOX_SIZE but I couldnt find its value. In order to access its
value I think you may need to do some Exchange serverside scripting. :(
Also, if you figure it out could you post it?
-
Re: Outlook Mailbox Size
Thanks for the direction. I will definitely post it when I figure it out. I have thought about digging into the Exchange side of things but everytime I think about going down that road I remind myself that this FolderSize feature is identical in a stand-alone .pst mode as it is in Exchange mode. So that has always made me believe that it is strictly an Outlook side feature. But I will find out.
Again, thanks for all your help.
-
Re: Outlook Mailbox Size
Yes, that is true, but if your running Outlook with Exchange then it may not be available the way it is in a non-exchange enviroment.