imap-quota-plugin.c revision ef2b2ef2e6a6eb5e4667f2e63faae8a3b646e8ba
/* Copyright (c) 2005-2009 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "str.h"
#include "imap-quote.h"
#include "mail-namespace.h"
#include "commands.h"
#include "quota.h"
#include "quota-plugin.h"
#include "imap-quota-plugin.h"
#include <stdlib.h>
#define QUOTA_USER_SEPARATOR ':'
const char *imap_quota_plugin_version = PACKAGE_VERSION;
static const char *
struct quota_root *root)
{
const char *name;
return name;
}
static void
struct quota_root *root)
{
unsigned int i;
int ret;
if (ret > 0) {
if (i > 0)
(unsigned long long)value,
(unsigned long long)limit);
i++;
} else if (ret < 0) {
"* BAD Internal quota calculation error");
}
}
}
{
struct mail_storage *storage;
struct mail_namespace *ns;
struct quota_root_iter *iter;
struct quota_root *root;
/* <mailbox> */
return FALSE;
return TRUE;
return TRUE;
}
mailbox_close(&box);
return TRUE;
}
mailbox_close(&box);
return TRUE;
}
/* send QUOTAROOT reply */
}
/* send QUOTA reply for each quotaroot */
mailbox_close(&box);
return TRUE;
}
{
struct quota_root *root;
const char *root_name, *p;
/* <quota root> */
return FALSE;
/* we're an admin. see if there's a quota root for another
user. */
if (p != NULL) {
t_strdup_until(root_name, p));
}
}
return TRUE;
}
return TRUE;
}
{
struct quota_root *root;
/* <quota root> <resource limits> */
return FALSE;
return TRUE;
}
return TRUE;
}
return TRUE;
}
return TRUE;
}
}
return TRUE;
}
{
if (next_hook_client_created != NULL)
}
void imap_quota_plugin_init(void)
{
}
void imap_quota_plugin_deinit(void)
{
command_unregister("GETQUOTAROOT");
command_unregister("GETQUOTA");
command_unregister("SETQUOTA");
}