Mercurial > dovecot > original-hg > dovecot-1.2
diff src/imap/cmd-close.c @ 0:3b1985cbc908 HEAD
Initial revision
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 09 Aug 2002 12:15:38 +0300 |
parents | |
children | 925d6eb5f8be |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/imap/cmd-close.c Fri Aug 09 12:15:38 2002 +0300 @@ -0,0 +1,19 @@ +/* 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; +}