Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/imap/cmd-close.c @ 1212:9ced30dda6c3 HEAD
workaround: outlook-idle
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 20 Feb 2003 02:46:17 +0200 |
parents | 81cbc1467097 |
children | e29bc94711e2 |
rev | line source |
---|---|
0 | 1 /* Copyright (C) 2002 Timo Sirainen */ |
2 | |
3 #include "common.h" | |
4 #include "commands.h" | |
5 | |
903
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
883
diff
changeset
|
6 int cmd_close(struct client *client) |
0 | 7 { |
1212 | 8 struct mailbox *mailbox = client->mailbox; |
9 | |
0 | 10 if (!client_verify_open_mailbox(client)) |
11 return TRUE; | |
12 | |
1212 | 13 client->mailbox = NULL; |
0 | 14 |
1212 | 15 if (!mailbox->expunge(mailbox, FALSE)) |
16 client_send_untagged_storage_error(client); | |
559
c834e77b624c
Mostly mbox locking/syncing fixes. Still some problems though.
Timo Sirainen <tss@iki.fi>
parents:
450
diff
changeset
|
17 |
1212 | 18 if (!mailbox->close(mailbox)) |
19 client_send_untagged_storage_error(client); | |
0 | 20 |
21 client_send_tagline(client, "OK Close completed."); | |
22 return TRUE; | |
23 } |