« Notes client StartupFaster=1? | Main| January 1st 2010 Week 1 or Week 53? »

Programatically removing a quota

Category
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 

Today I was writing an agent to remove the quota from mail-files. It seemed rather straight forward to me, just using:

db.SizeQuota = 0
db.SizeWarning = 0

However, db.SizeQuota = 0 generated an error "size limit exceeds quota"!!!

It turned out that if you want to remove the quota, or set the quota to a lower number, you must first change the sizewarning.

So:
db.SizeWarning = 0
db.SizeQuota = 0

Will work.

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

OpenNTF random projects

PlanetLotus