view src/imap/cmd-expunge.c @ 100:867ec80dbf42 HEAD

Custom flags are now shown in FLAGS and PERMANENTFLAGS lists after SELECT. It also warns if there's for some reason a duplicate index number in custom flags file.
author Timo Sirainen <tss@iki.fi>
date Thu, 29 Aug 2002 22:21:51 +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;
}