Skip to content

Commit

Permalink
expire plugin: Use correct hook for overriding mail_user vfuncs
Browse files Browse the repository at this point in the history
This was always wrong to do, and it crashes after
f32382d
  • Loading branch information
sirainen authored and GitLab committed Feb 22, 2017
1 parent 06c5592 commit 17ac264
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugins/expire/expire-plugin.c
Expand Up @@ -400,9 +400,8 @@ static const char *const *expire_get_patterns(struct mail_user *user)
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_settings dict_set;
Expand Down Expand Up @@ -443,7 +442,7 @@ static void expire_mail_namespaces_created(struct mail_namespace *ns)
}

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
};
Expand Down

0 comments on commit 17ac264

Please sign in to comment.