Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9437:00757d350812 HEAD
expire: Mailbox names should be written to dict using their virtual name.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 15 Oct 2009 21:10:03 -0400 |
parents | 5763caa55b57 |
children | 1207923ccb94 |
files | src/plugins/expire/expire-plugin.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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;