Mercurial > dovecot > core-2.2
diff src/lib-storage/index/imapc/imapc-connection.c @ 12596:d75d4841c890
imapc: Implemented more methods.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 24 Jan 2011 00:00:02 +0200 |
parents | 5d97dfa9d86c |
children | 1413a0fa9ae7 |
line wrap: on
line diff
--- a/src/lib-storage/index/imapc/imapc-connection.c Sun Jan 23 23:32:52 2011 +0200 +++ b/src/lib-storage/index/imapc/imapc-connection.c Mon Jan 24 00:00:02 2011 +0200 @@ -1022,6 +1022,15 @@ imapc_connection_cmdf(conn, callback, context, "SELECT %s", name); } +void imapc_connection_unselect(struct imapc_client_mailbox *box) +{ + i_assert(box->conn->selected_box == box || + box->conn->selecting_box == box); + + box->conn->selected_box = NULL; + box->conn->selecting_box = NULL; +} + static void imapc_connection_idle_callback(const struct imapc_command_reply *reply ATTR_UNUSED, void *context)