view src/imap/cmd-expunge.c @ 91:dc0891523276 HEAD

bugfix for sync fix
author Timo Sirainen <tss@iki.fi>
date Thu, 29 Aug 2002 01:42:00 +0300
parents 3b1985cbc908
children 925d6eb5f8be
line wrap: on
line source

/* Copyright (C) 2002 Timo Sirainen */

#include "common.h"
#include "commands.h"

int cmd_expunge(Client *client)
{
	if (!client_verify_open_mailbox(client))
		return TRUE;

	if (client_sync_and_expunge_mailbox(client))
		client_send_tagline(client, "OK Expunge completed.");
	else
		client_send_storage_error(client);

	return TRUE;
}