{
struct expire_mailbox *xpr_box = EXPIRE_CONTEXT(t->box);
struct expire_transaction_context *xt = EXPIRE_CONTEXT(t);
- const char *mailbox_name = t->box->name;
time_t new_stamp;
bool update_dict = FALSE;
int ret;
const char *key, *value;
key = t_strconcat(DICT_EXPIRE_PREFIX, expire.username, "/",
- mailbox_name, NULL);
+ t->box->storage->ns->prefix,
+ t->box->name, NULL);
if (!xt->first_expunged && xt->saves) {
/* saved new mails. dict needs to be updated only if
this is the first mail in the database */
errstr = mail_storage_get_last_error(ns->storage, &error);
if (error != MAIL_ERROR_NOTFOUND) {
i_error("%s: Opening mailbox %s failed: %s",
- user, ns_mailbox, errstr);
+ user, mailbox, errstr);
return -1;
}