/* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
#include "imap-common.h"
#include "str.h"
#include "istream.h"
#include "ostream.h"
#include "module-context.h"
#include "imap-commands.h"
#include "compression.h"
#include "imap-zlib-plugin.h"
struct zlib_client {
};
{
const unsigned char *data;
if (data[0] == '\n')
else
i_unreached();
}
{
}
}
}
{
unsigned int level;
/* <mechanism> */
return FALSE;
return TRUE;
}
"NO [COMPRESSIONACTIVE] COMPRESSION=%s already enabled.",
return TRUE;
}
return TRUE;
}
"imap_zlib_compress_level");
/* preserve output offset so that the bytes out counter in logout
message doesn't get reset here */
return TRUE;
}
static int
{
*error_r = "COMPRESS enabled";
return 0;
}
}
{
}
if (next_hook_client_created != NULL)
}
{
}
void imap_zlib_plugin_deinit(void)
{
command_unregister("COMPRESS");
}