imap-quota-plugin.c revision 378d924da5853145a6df9a299074f04be69986c7
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen/* Copyright (C) 2005 Timo Sirainen */
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenquota_send(struct client_command_context *cmd, struct quota_root *root)
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen const char *const *list;
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen unsigned int i;
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen imap_quote_append_string(str, quota_root_get_name(root), FALSE);
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen ret = quota_get_resource(root, *list, &value, &limit);
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen (unsigned long long)value,
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen (unsigned long long)limit);
} else if (ret < 0) {
t_pop();
const char *mailbox;
return FALSE;
return TRUE;
return TRUE;
return TRUE;
return TRUE;
const char *root_name;
return FALSE;
return TRUE;
return TRUE;
return TRUE;
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)