imap-stats-plugin.c revision 46d7260c4fef1aa01ef8bf041f4c59ff6fa1f88f
/* Copyright (c) 2011-2018 Dovecot authors, see the included COPYING file */
#include "imap-common.h"
#include "base64.h"
#include "str.h"
#include "imap-commands.h"
#include "stats.h"
#include "stats-plugin.h"
#include "stats-connection.h"
#include "imap-stats-plugin.h"
#define IMAP_STATS_IMAP_CONTEXT(obj) \
struct stats_client_command {
union imap_module_context module_ctx;
unsigned int id;
bool continued;
};
const char *imap_stats_plugin_version = DOVECOT_ABI_VERSION;
{
struct stats_client_command *scmd;
static unsigned int stats_cmd_id_counter = 0;
return;
/* IDLE can run forever and waste stats process's memory while
waiting for it to timeout. don't send them. */
return;
}
}
}
{
const char *error;
return;
else {
}
/* truncate the args so it fits */
if (delete_count > args_len)
}
}
{
}
void imap_old_stats_plugin_deinit(void)
{
}
const char imap_stats_plugin_binary_dependency[] = "imap";