Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1026:e147dcbb2ba6 HEAD
forgot to add
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 23 Jan 2003 21:02:10 +0200 |
parents | eb80a942bd8b |
children | 29f09c05945d |
files | src/imap/cmd-unselect.c |
diffstat | 1 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/imap/cmd-unselect.c Thu Jan 23 21:02:10 2003 +0200 @@ -0,0 +1,18 @@ +/* Copyright (C) 2002 Timo Sirainen */ + +#include "common.h" +#include "commands.h" + +int cmd_unselect(struct client *client) +{ + if (!client_verify_open_mailbox(client)) + return TRUE; + + if (!client->mailbox->close(client->mailbox)) + client_send_closing_mailbox_error(client); + + client->mailbox = NULL; + + client_send_tagline(client, "OK Unselect completed."); + return TRUE; +}