]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
expire code cleanup: Use mailbox_get_vname().
authorTimo Sirainen <tss@iki.fi>
Tue, 7 Jul 2009 18:46:32 +0000 (14:46 -0400)
committerTimo Sirainen <tss@iki.fi>
Tue, 7 Jul 2009 18:46:32 +0000 (14:46 -0400)
--HG--
branch : HEAD

src/plugins/expire/expire-plugin.c

index eba10660e691d9a1ef22c8c780eafc474b1d2dda..d12423d8f6933ea9e55ca7fe11750df8ec3556c0 100644 (file)
@@ -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);