/* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "module-dir.h"
#include "quota-plugin.h"
#include "quota-private.h"
#include "doveadm-print.h"
#include "doveadm-mail.h"
void doveadm_quota_plugin_deinit(void);
{
const char *const *res;
const char *error;
int ret = 0;
doveadm_print(*res);
if (qret == QUOTA_GET_RESULT_LIMITED) {
if (limit > 0)
else
doveadm_print("0");
} else if (qret == QUOTA_GET_RESULT_UNLIMITED) {
doveadm_print("-");
doveadm_print("0");
} else {
i_error("Failed to get quota resource %s: %s",
doveadm_print("error");
doveadm_print("error");
doveadm_print("error");
ret = -1;
}
}
return ret;
}
static int
{
i_error("Quota not enabled");
return -1;
}
int ret = 0;
if (cmd_quota_get_root(*root) < 0)
ret = -1;
if (ret < 0)
return ret;
}
const char *const args[] ATTR_UNUSED)
{
}
static struct doveadm_mail_cmd_context *
cmd_quota_get_alloc(void)
{
return ctx;
}
static int
{
i_error("Quota not enabled");
return -1;
}
const char *error;
}
return 0;
}
static struct doveadm_mail_cmd_context *
cmd_quota_recalc_alloc(void)
{
return ctx;
}
{
.name = "quota get",
.usage = "",
},
{
.name = "quota recalc",
.usage = "",
}
};
{
unsigned int i;
for (i = 0; i < N_ELEMENTS(quota_commands); i++)
}
void doveadm_quota_plugin_deinit(void)
{
}