quota.c revision b863b7e3fccf75f90f613b875f02fd1781e14e5e
0N/A#include "write-full.h"
0N/A#include "eacces-error.h"
0N/A#include "mailbox-list-private.h"
0N/A#include "quota-private.h"
0N/A#include "quota-fs.h"
0N/A#define DEFAULT_QUOTA_EXCEEDED_MSG \
0N/Astruct quota_root_iter {
0N/Aunsigned int quota_module_id = 0;
0N/A#ifdef HAVE_FS_QUOTA
0N/A return quota_backends[i];
return NULL;
const char **error_r)
const char **error_r)
rule);
const char **error_r)
const char **error_r)
if (p == NULL) {
if (p == NULL) {
const char **error_r)
i_unreached();
&error) < 0) {
i_unreached();
const char *const *tmp;
unsigned int i, count;
const char *error;
int ret;
for (i = 0; i < count; i++) {
if (ret < 0) {
if (ret > 0)
unsigned int i, count;
for (i = 0; i < count; i++)
const char *mailbox_name,
bool enabled;
&mailbox_name);
bytes_limit = 0;
count_limit = 0;
unsigned int i, j, count;
&path)) {
for (i = 0; i < count; i++) {
for (i = 0; i < count; i++) {
unsigned int i, count;
for (i = 0; i < count; i++) {
struct quota_root_iter *
return iter;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
bool enforce)
return FALSE;
return FALSE;
return TRUE;
unsigned int count;
int ret;
return NULL;
if (ret == 0) {
if (ret > 0) {
iter->i++;
return root;
unsigned int i, count;
for (i = 0; i < count; i++) {
return roots[i];
return NULL;
int ret;
if (ret <= 0)
return ret;
*limit_r = 0;
if (kilobytes) {
const char *key;
return ctx;
const char *mailbox_name;
unsigned int i, count;
bool use_grace;
int ret;
for (i = 0; i < count; i++) {
&count_limit) < 0) {
if (bytes_limit > 0) {
if (ret > 0) {
} else if (ret < 0) {
if (count_limit > 0) {
if (ret > 0) {
} else if (ret < 0) {
int fd;
args++;
socket_path));
unsigned int i, count;
if (count == 0)
for (i = 0; i < count; i++) {
unsigned int i, count;
const char *mailbox_name;
int ret = 0;
(void)mail_namespace_find_unalias(
for (i = 0; i < count; i++) {
} T_END;
return ret;
int ret;
if (ret <= 0)
return ret;
unsigned int i, count;
int ret;
for (i = 0; i < count; i++) {
if (ret == 0)
if (ret < 0)