Mercurial > dovecot > core-2.2
changeset 22867:334fc7c1e9ee
imap: Don't set storage callbacks before namespaces are created
This fixes sending untagged OK/NO notifications from storage (e.g. lock
waits/override notifications). It was broken by
e031d9aaae59a9f79710dc1138b76b69272615a3
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 15 Feb 2018 18:16:15 +0200 |
parents | e8bb571b38b4 |
children | 5841256dd8c7 |
files | src/imap/imap-client.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/imap-client.c Thu Feb 15 18:15:16 2018 +0200 +++ b/src/imap/imap-client.c Thu Feb 15 18:16:15 2018 +0200 @@ -153,9 +153,6 @@ &client->output); } - mail_namespaces_set_storage_callbacks(user->namespaces, - &mail_storage_callbacks, client); - client->capability_string = str_new(client->pool, sizeof(CAPABILITY_STRING)+64); @@ -220,6 +217,8 @@ { if (mail_namespaces_init(client->user, error_r) < 0) return -1; + mail_namespaces_set_storage_callbacks(client->user->namespaces, + &mail_storage_callbacks, client); return 0; }