doveadm-mail-expunge.c revision 6a262c9bd8f57cf1e57112e0522dbdab28ae8c29
305N/A#include "mail-index.h"
305N/A#include "mail-storage.h"
305N/A#include "mail-search.h"
305N/A#include "doveadm-mailbox-list-iter.h"
305N/A#include "doveadm-mail-iter.h"
305N/A#include "doveadm-mail.h"
305N/Astruct expunge_cmd_context {
305N/A bool delete_empty_mailbox;
305N/A if (doveadm_debug) {
305N/A case SEARCH_SUB:
305N/A case SEARCH_INTHREAD:
305N/A case SEARCH_MAILBOX:
305N/A case SEARCH_MAILBOX_GUID:
305N/A case SEARCH_MAILBOX_GLOB:
case SEARCH_MAILBOX:
case SEARCH_MAILBOX_GUID:
case SEARCH_MAILBOX_GLOB:
return TRUE;
case SEARCH_OR:
case SEARCH_SUB:
case SEARCH_INTHREAD:
return TRUE;
if (!have_or)
return FALSE;
return FALSE;
return TRUE;
case SEARCH_MAILBOX:
case SEARCH_MAILBOX_GUID:
case SEARCH_MAILBOX_GLOB:
return FALSE;
case SEARCH_OR:
return FALSE;
case SEARCH_SUB:
return FALSE;
return TRUE;
case SEARCH_MAILBOX:
case SEARCH_MAILBOX_GUID:
case SEARCH_MAILBOX_GLOB:
case SEARCH_OR:
return TRUE;
case SEARCH_SUB:
return TRUE;
return TRUE;
return FALSE;
int ret = 0;
} T_END;
return ret;
const char *const args[])
return FALSE;
return TRUE;