imap-expunge.c revision d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d
/* 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);
else {
if (mail_expunge(mail) < 0) {
break;
}
}
}
if (mailbox_search_deinit(&ctx) < 0)
return FALSE;
if (failed)
else {
if (mailbox_transaction_commit(&t, flags) < 0)
}
return !failed;
}