dovecot-1.2: expire: Mailbox names should be written to dict usi...

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 16 04:10:09 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/00757d350812
changeset: 9437:00757d350812
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 15 21:10:03 2009 -0400
description:
expire: Mailbox names should be written to dict using their virtual name.

diffstat:

1 file changed, 5 insertions(+), 2 deletions(-)
src/plugins/expire/expire-plugin.c |    7 +++++--

diffs (19 lines):

diff -r 5763caa55b57 -r 00757d350812 src/plugins/expire/expire-plugin.c
--- a/src/plugins/expire/expire-plugin.c	Thu Oct 15 20:56:11 2009 -0400
+++ b/src/plugins/expire/expire-plugin.c	Thu Oct 15 21:10:03 2009 -0400
@@ -123,10 +123,13 @@ expire_mailbox_transaction_commit(struct
 
 	if (xt->first_expunged || xt->saves) T_BEGIN {
 		const char *key, *value;
-
+		string_t *vname = t_str_new(128);
+
+		mail_namespace_get_vname(box->storage->ns->user->namespaces,
+					 vname, box->name);
 		key = t_strconcat(DICT_EXPIRE_PREFIX,
 				  box->storage->ns->user->username, "/",
-				  box->storage->ns->prefix, box->name, NULL);
+				  str_c(vname), NULL);
 		if (xt->first_expunged) {
 			if (new_stamp == 0 && xt->saves)
 				new_stamp = ioloop_time;


More information about the dovecot-cvs mailing list