Mailing List CGatePro@mail.stalker.com Message #103498
From: Robin Lewis <robin@primary.uk.com>
Subject: Re: Email- Mailbox storage Used amount doesnt match file system
Date: Thu, 6 Sep 2012 14:00:22 +0100
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
X-Mailer: Apple Mail (2.1084)
Thanks Nicolas
I will experiment out of hours with that later.
R

On 5 Sep 2012, at 19:49, Nicolas Hatier wrote:


If you choose to edit the account.info file, you can do it as follows:
- Delete the #StorageUsed line
- Delete all mailbox lines which don't have a "Class=IPF..." in them. These are special mailboxes (calendar, tasks, notes, etc), and if you delete those lines those mailboxes will lose their status.
- Or, carefully examine account.info, there may be mailbox lines about mailboxes that don't exist anymore, especially if mailboxes have been deleted on the filesystem and not in CGP. These lines may be counted in the account storage and will NOT be removed by an account rescan.

Note that doing so will likely produce a warning log entry each time the user accesses any of his mailbox for the first time.
Also note that account.info is cached by CGP when the account is accessed, you may need to stop CGP before editing the file.

The "easy" way can also be to simply delete account.info to start over. You can use the SetMailboxClass CLI function to reset the class of the special mailboxes, if any. Account.info also contains Roster information, Subscription list, Webmail settings, etc., which will be lost if you don't preserve them.

I think two small things should be done in CGP regarding this:
- The Rescan account storage should remove all mailbox lines from account.info that don't match to an existing mailbox anymore
- Account.info should be split in two files, one containing persistent data (Roster, account preferences [#Viewer], mailbox classes, mailbox ACL, aliases, subscription), and another containing transient/cached information - counts, sequences, uidnext, etc., values that can be recalculated.

Nicolas


On 2012-09-05 14:30, Jeff Wark wrote:
Maybe that only rescans mail storage and not account storage [which would include file/web storage].

Years ago, I actually used to remove the account.info file from the directory.  It seemed to work fine after that, but you would basically get a new account.info file and you would lose any information that may be in there.  That may be where rules are stored.

On 9/5/2012 1:36 PM, Robin Lewis wrote:
Thanks Jeff
Ive tried that and it made no difference.

R


-- 
Robin Lewis
IT and Communications Manager
0207 400 4500

Primary Talent International
The Primary Building
10-11 Jockey's Fields
London
WC1R 4BN

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster