cmd-expunge.c revision 5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294
/* Copyright (c) 2002-2013 Dovecot authors, see the included COPYING file */
#include "imap-common.h"
#include "imap-commands.h"
#include "imap-search-args.h"
#include "imap-expunge.h"
{
/* Outlook workaround: session 1 set \Deleted flag and
session 2 tried to expunge without having seen it yet.
expunge again. MAILBOX_TRANSACTION_FLAG_REFRESH should
have caught this already if index files are used. */
return cmd_expunge(cmd);
}
return TRUE;
}
static bool ATTR_NULL(2)
struct mail_search_args *search_args)
{
const char *errstr;
int ret;
search_args->args);
if (search_args != NULL)
if (ret < 0) {
if (error != MAIL_ERROR_PERM) {
return TRUE;
} else {
t_strdup_printf("OK Expunge ignored: %s.",
errstr));
}
}
IMAP_SYNC_FLAG_SAFE, "OK Expunge completed.");
} else {
}
}
{
struct mail_search_args *search_args;
const char *uidset;
int ret;
return FALSE;
if (!client_verify_open_mailbox(cmd))
return TRUE;
return TRUE;
}
if (ret <= 0)
return ret < 0;
}
{
if (!client_verify_open_mailbox(cmd))
return TRUE;
}