view src/imap/cmd-expunge.c @ 924:4f697dde0fca HEAD

THREAD=REFERENCES implementation. Doesn't crash, but I'm not sure how correct replies it produces :)
author Timo Sirainen <tss@iki.fi>
date Wed, 08 Jan 2003 22:49:51 +0200
parents fd8888f6f037
children db14aa8e2b5c
line wrap: on
line source

/* Copyright (C) 2002 Timo Sirainen */

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

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

	if (client->mailbox->expunge(client->mailbox, TRUE))
		client_send_tagline(client, "OK Expunge completed.");
	else
		client_send_storage_error(client);

	return TRUE;
}