dovecot-2.0: expire code cleanup: Use mailbox_get_vname().

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 7 21:46:57 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/2c90d6cf8b09
changeset: 9566:2c90d6cf8b09
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 07 14:46:32 2009 -0400
description:
expire code cleanup: Use mailbox_get_vname().

diffstat:

1 file changed, 1 insertion(+), 5 deletions(-)
src/plugins/expire/expire-plugin.c |    6 +-----

diffs (20 lines):

diff -r eda6f7c67058 -r 2c90d6cf8b09 src/plugins/expire/expire-plugin.c
--- a/src/plugins/expire/expire-plugin.c	Tue Jul 07 14:44:46 2009 -0400
+++ b/src/plugins/expire/expire-plugin.c	Tue Jul 07 14:46:32 2009 -0400
@@ -259,15 +259,11 @@ static void expire_mailbox_allocated(str
 	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);


More information about the dovecot-cvs mailing list