# HG changeset patch # User Timo Sirainen # Date 1487776916 -7200 # Node ID 8ecc25852f37caab9aa10505afba1ffb118b9299 # Parent 82913199b86440609ed5abaf9751890ae8e7c73b expire plugin: Use correct hook for overriding mail_user vfuncs This was always wrong to do, and it crashes after f32382d2da479a4371e08c443679528db37ea988 diff -r 82913199b864 -r 8ecc25852f37 src/plugins/expire/expire-plugin.c --- 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 };