quota-clone-plugin.c revision bb11a1957aefbd2a2edf7ae25af4032899c34c41
364ccf5f46bddc3347c7ddb28dc3e56397ad986fTim Reddehase/* Copyright (c) 2015-2017 Dovecot authors, see the included COPYING file */
364ccf5f46bddc3347c7ddb28dc3e56397ad986fTim Reddehase/* If mailbox is kept open for this many milliseconds after quota update,
364ccf5f46bddc3347c7ddb28dc3e56397ad986fTim Reddehase flush quota-clone. */
364ccf5f46bddc3347c7ddb28dc3e56397ad986fTim Reddehase#define QUOTA_CLONE_FLUSH_DELAY_MSECS (10*1000)
364ccf5f46bddc3347c7ddb28dc3e56397ad986fTim Reddehase#define DICT_QUOTA_CLONE_PATH DICT_PATH_PRIVATE"quota/"
364ccf5f46bddc3347c7ddb28dc3e56397ad986fTim Reddehase#define DICT_QUOTA_CLONE_BYTES_PATH DICT_QUOTA_CLONE_PATH"storage"
364ccf5f46bddc3347c7ddb28dc3e56397ad986fTim Reddehase#define DICT_QUOTA_CLONE_COUNT_PATH DICT_QUOTA_CLONE_PATH"messages"
struct quota_clone_user {
bool quota_flushing;
struct quota_clone_mailbox {
bool quota_changed;
const char *error;
error);
error);
RESULT_LIMITED/RESULT_UNLIMITED to RESULT_UNKNOWN_RESOURCE, which
void quota_clone_plugin_deinit(void)