doveadm-expire.c revision bd63b5b860658b01b1f46f26d406e1e4a9dc019a
1029N/A#include "module-dir.h"
1042N/A#include "imap-match.h"
1042N/A#include "expire-set.h"
1042N/A#include "mail-search.h"
1042N/A#include "doveadm-settings.h"
1042N/A#include "doveadm-mail.h"
1042N/Aenum expire_user_state {
1042N/Astruct expire_query {
1029N/Avoid doveadm_expire_plugin_deinit(void);
1029N/A const char **username_r)
1196N/A char *orig_username;
const char **username_r)
unsigned long oldest_savedate;
int ret;
if (doveadm_debug) {
T_BEGIN {
} T_END;
if (ret > 0)
return TRUE;
static const char *const *doveadm_expire_get_patterns(void)
const char *str;
i_unreached();
unsigned int query_count;
case SEARCH_MAILBOX_GLOB:
case SEARCH_MAILBOX:
return FALSE;
case SEARCH_OR:
case SEARCH_MAILBOX_GLOB:
case SEARCH_MAILBOX:
case SEARCH_BEFORE:
MAIL_SEARCH_ARG_FLAG_USE_TZ) == 0)
return FALSE;
return TRUE;
if (!have_or)
return FALSE;
query))
return TRUE;
return FALSE;
static time_t
return FALSE;
return FALSE;
return TRUE;
unsigned int i, count;
if (doveadm_debug)
return FALSE;
for (i = 0; i < count; i++) {
if (doveadm_debug) {
return i == count;
char *username_dup;
if (doveadm_debug) {
if (doveadm_debug)
void doveadm_expire_plugin_deinit(void)