Mercurial > dovecot > original-hg > dovecot-1.2
annotate 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 |
rev | line source |
---|---|
0 | 1 /* Copyright (C) 2002 Timo Sirainen */ |
2 | |
3 #include "common.h" | |
4 #include "commands.h" | |
5 | |
6 int cmd_close(Client *client) | |
7 { | |
8 if (!client_verify_open_mailbox(client)) | |
9 return TRUE; | |
10 | |
11 /* Ignore expunge errors - we can't really do anything about it */ | |
12 (void)client->mailbox->expunge(client->mailbox); | |
13 | |
14 client->mailbox->close(client->mailbox); | |
15 client->mailbox = NULL; | |
16 | |
17 client_send_tagline(client, "OK Close completed."); | |
18 return TRUE; | |
19 } |