imap-expunge.c revision 7774ddcab3661f24c473bd74ad35f717f8bd7110
/* Copyright (C) 2003 Timo Sirainen */
#include "common.h"
#include "mail-storage.h"
#include "mail-search.h"
#include "imap-expunge.h"
{
struct mail_search_context *ctx;
struct mailbox_transaction_context *t;
struct mail_search_arg search_arg;
enum mailbox_sync_flags flags;
t = mailbox_transaction_begin(box, 0);
if (mail_expunge(mail) < 0) {
break;
}
}
if (mailbox_search_deinit(&ctx) < 0)
if (failed)
else {
if (mailbox_transaction_commit(&t, flags) < 0)
}
return !failed;
}