imap-quota-plugin.c revision 4ea6c43a08b37f270bd54b5809142246fd118263
/* Copyright (C) 2005 Timo Sirainen */
#include "common.h"
#include "str.h"
#include "imap-quote.h"
#include "commands.h"
#include "quota.h"
#include "quota-plugin.h"
#include "imap-quota-plugin.h"
#include <stdlib.h>
static void
{
const char *const *list;
unsigned int i;
int ret;
t_push();
if (ret > 0) {
if (i > 0)
(unsigned long long)value,
(unsigned long long)limit);
i++;
} else if (ret < 0) {
}
}
t_pop();
}
{
struct mail_storage *storage;
struct quota_root_iter *iter;
struct quota_root *root;
const char *mailbox;
/* <mailbox> */
return FALSE;
return TRUE;
return TRUE;
}
return TRUE;
}
/* send QUOTAROOT reply */
}
/* send QUOTA reply for each quotaroot */
mailbox_close(&box);
return TRUE;
}
{
const char *root_name;
struct quota_root *root;
/* <quota root> */
return FALSE;
return TRUE;
}
return TRUE;
}
return TRUE;
}
{
struct quota_root *root;
/* <quota root> <resource limits> */
return FALSE;
return TRUE;
}
return TRUE;
}
return TRUE;
}
return TRUE;
}
return TRUE;
}
}
return TRUE;
}
void imap_quota_plugin_init(void)
{
}
void imap_quota_plugin_deinit(void)
{
command_unregister("GETQUOTAROOT");
command_unregister("GETQUOTA");
command_unregister("SETQUOTA");
}