List of usage examples for javax.mail Quota setResourceLimit
public void setResourceLimit(String name, long limit)
From source file:com.hs.mail.imap.dao.MySqlUserDao.java
public Quota getQuota(long ownerID, String quotaRoot) { Quota quota = new Quota(quotaRoot); quota.setResourceLimit("STORAGE", getQuotaLimit(ownerID)); quota.resources[0].usage = getQuotaUsage(ownerID); return quota; }