Programatically removing a quota
Category None
Bookmark :
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.
Bookmark :
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.
- 

