view src/imap/cmd-close.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_close(Client *client)
{
	if (!client_verify_open_mailbox(client))
		return TRUE;

	/* Ignore expunge errors - we can't really do anything about it */
	(void)client->mailbox->expunge(client->mailbox);

	client->mailbox->close(client->mailbox);
	client->mailbox = NULL;

	client_send_tagline(client, "OK Close completed.");
	return TRUE;
}