Mercurial > dovecot > core-2.2
changeset 21403:1baae1dc44a4
lib-storage: Stop namespaces_added|created hooks immediately when user has failed
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sat, 14 Jan 2017 16:12:03 +0200 |
parents | 16768c5df6e9 |
children | 80faa93d98de |
files | src/lib-storage/mail-storage-hooks.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mail-storage-hooks.c Sat Jan 14 16:10:15 2017 +0200 +++ b/src/lib-storage/mail-storage-hooks.c Sat Jan 14 16:12:03 2017 +0200 @@ -292,6 +292,8 @@ const struct mail_storage_hooks *const *hooks; array_foreach(&namespaces->user->hooks, hooks) { + if (namespaces->user->error != NULL) + break; if ((*hooks)->mail_namespaces_created != NULL) T_BEGIN { (*hooks)->mail_namespaces_created(namespaces); } T_END; @@ -303,6 +305,8 @@ const struct mail_storage_hooks *const *hooks; array_foreach(&namespaces->user->hooks, hooks) { + if (namespaces->user->error != NULL) + break; if ((*hooks)->mail_namespaces_added != NULL) T_BEGIN { (*hooks)->mail_namespaces_added(namespaces); } T_END;