From: Timo Sirainen Date: Tue, 7 Jul 2009 18:46:32 +0000 (-0400) Subject: expire code cleanup: Use mailbox_get_vname(). X-Git-Tag: 2.0.alpha1~486 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d18744aa03cdb3d50965cc06d314f6b4e4cdfccc;p=thirdparty%2Fdovecot%2Fcore.git expire code cleanup: Use mailbox_get_vname(). --HG-- branch : HEAD --- diff --git a/src/plugins/expire/expire-plugin.c b/src/plugins/expire/expire-plugin.c index eba10660e6..d12423d8f6 100644 --- a/src/plugins/expire/expire-plugin.c +++ b/src/plugins/expire/expire-plugin.c @@ -259,15 +259,11 @@ static void expire_mailbox_allocated(struct mailbox *box) struct expire_mail_user *euser = EXPIRE_USER_CONTEXT(box->storage->user); struct mail_namespace *ns = mailbox_list_get_namespace(box->list); - string_t *vname; unsigned int secs; bool altmove; if (euser != NULL) { - vname = t_str_new(128); - (void)mail_namespace_get_vname(ns, vname, box->name); - - secs = expire_box_find_min_secs(euser->env, str_c(vname), + secs = expire_box_find_min_secs(euser->env, box->vname, &altmove); if (secs != 0) mailbox_expire_hook(box, secs, altmove);