Mercurial > dovecot > core-2.2
changeset 21676:8ecc25852f37
expire plugin: Use correct hook for overriding mail_user vfuncs
This was always wrong to do, and it crashes after
f32382d2da479a4371e08c443679528db37ea988
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 22 Feb 2017 17:21:56 +0200 |
parents | 82913199b864 |
children | 9479458bcc69 |
files | src/plugins/expire/expire-plugin.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/expire/expire-plugin.c Wed Feb 22 15:32:19 2017 +0200 +++ b/src/plugins/expire/expire-plugin.c Wed Feb 22 17:21:56 2017 +0200 @@ -397,9 +397,8 @@ return array_idx(&patterns, 0); } -static void expire_mail_namespaces_created(struct mail_namespace *ns) +static void expire_mail_user_created(struct mail_user *user) { - struct mail_user *user = ns->user; struct mail_user_vfuncs *v = user->vlast; struct expire_mail_user *euser; struct dict *db; @@ -436,7 +435,7 @@ } static struct mail_storage_hooks expire_mail_storage_hooks = { - .mail_namespaces_created = expire_mail_namespaces_created, + .mail_user_created = expire_mail_user_created, .mailbox_allocated = expire_mailbox_allocated, .mail_allocated = expire_mail_allocated };