Lines Matching refs:quota
9 #include "quota-private.h"
77 /* we'll never try to enforce the quota - it's just a lot of
102 struct quota *quota;
106 quota = quota_get_mail_user_quota(storage->storage.user);
107 i_assert(quota != NULL);
109 /* find the quota root that is being refreshed */
110 array_foreach("a->roots, rootp) {
225 i_warning("quota: Namespace '%s' is not imapc, "
226 "skipping for imapc quota",
244 refresh->pool = pool_alloconly_create("imapc quota refresh", 256);
249 imapc_quota_refresh_update(struct quota *quota,
256 i_error("quota: imapc didn't return any QUOTA results");
259 /* use the first quota root for everything */
262 array_foreach("a->roots, rootp) {
276 imapc_quota_refresh_deinit(struct quota *quota,
280 imapc_quota_refresh_update(quota, refresh);
315 /* if there are multiple quota roots, use the first one returned by
318 imapc_quota_refresh_deinit(root->root.quota, &root->refresh,
338 /* ask quotas for the configured quota root */
356 imapc_quota_refresh_deinit(root->root.quota, &root->refresh,
374 /* imapc namespace is missing - disable this quota backend */
388 /* no QUOTA capability - disable quota */
389 i_warning("quota: Remote IMAP server doesn't support QUOTA - disabling");
414 imapc_quota_namespace_added(struct quota *quota, struct mail_namespace *ns)
419 roots = array_get_modifiable("a->roots, &count);