[dev] [PATCH] IMP : rework of the Quota class

Tyler Colbert tyler-hordeml at colberts.us
Wed Sep 24 14:32:21 PDT 2003


Quoting Etienne Goyer <etienne.goyer at linuxquebec.com>:

> contrast, the IMP Quota class only to report about quota usage, not
> enforce them, so they would unrelated.

Actually, IIRC, what I did (which is not that clean), was to alter Ansel and
Gollem to remove their add buttons when the Quota was exceeded.  Savvy users
could probably get around what I have, so its far from the best solution.  I
probably would have done a better job of it if I wasn't feeling dirty already
due to referencing IMP classes from other applications.  I agree that quota
enforcement is not the Quota class's responsibility.  IMO its the responsibiity
of the storage backend, be it IMAP or SQL.  Of course the applications should
be aware of it and try to simplify the users life by removing the temptation to
further exceed quota.

Regardless of its structure, the correct/clean solution will still need to
report quota usage, so IMHO, the Quota class should be moved.

> AFAIC, a quota feature the SQL VFS backend could be very usefull.  I'll
> have a use for that.

Yes.  I think a proper solution should be implimented though.  If I ever get
time, and no one beats me to it, I'll do it...

--
Tyler Colbert


More information about the dev mailing list