Command question

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

techsharp
Posts: 436
Joined: Tue Jan 16, 2007 9:01 pm

Command question

Postby techsharp » Tue Oct 02, 2007 11:00 am

Is there a way to view a users folders and how much space each folder is taking up?

I know sxdu shows the mailbox size, but I want to break it down by folder.

Thanks!

Richard Hall
Scalix
Scalix
Posts: 147
Joined: Fri May 20, 2005 5:37 am

Postby Richard Hall » Wed Oct 03, 2007 4:22 am

Hi Techsharp,

There is an undocumented, unsupported debug option to 'sxmboxlist' that will print out the approximate folder size (and number of msgs) for each folder:

Code: Select all

sxmboxlist -u <user> -D 4

It produces output like this:

Code: Select all

F-0000000001    Inbox                                   36Mb    160 Msgs
F-0004098276    Inbox/SPAM                              266Kb   19 Msgs
F-0004491506    Inbox/Postmaster                        15Kb    1 Msgs
F-0000000002    Outbox                                  1Kb     0 Msgs
F-0000000003    Sent Items                              164Mb   6254 Msgs
F-0000842250    Deleted Items                           1Mb     46 Msgs
F-0000842532    Calendar                                8Mb     352 Msgs
F-0000842572    Contacts                                52Kb    41 Msgs
F-0000842574    Journal                                 2Kb     0 Msgs
F-0000842579    Notes                                   7Kb     3 Msgs
F-0000842582    Tasks                                   23Kb    7 Msgs
F-0000842722    Drafts                                  2Mb     38 Msgs
F-0000842725    Imported Msgs                           2Kb     0 Msgs
F-0000842737    Msgs from Exchange                      12Kb    4 Msgs
F-0000842877    Test messages                           3Mb     53 Msgs
F-0001267681    Test messages/another sub               254Kb   46 Msgs


Cheers - Richard

Richard Hall
Scalix
Scalix
Posts: 147
Joined: Fri May 20, 2005 5:37 am

Postby Richard Hall » Wed Oct 03, 2007 4:41 am

A word of warning about this folder list - the folder size displayed is inclusive of any sub-folder sizes.

So a top-level folder that contains no msgs but 2 sub-folders would give:

Code: Select all

F-00001234  Top                                            100Kb   0 Msgs
F-00001235  Top/sub-1                                      40Kb    3 Msgs
F-00001236  Top/sub-2                                      60Kb    5 Msgs

Richard


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 5 guests

cron