attr_value.value = value;
if ((ret = mailbox_attribute_set(t, attr_type,
- attr_name, &attr_value)) <= 0) {
- if (ret < 0) {
- *error_r = t_strdup_printf("mailbox_attribute_set(%s, %s) failed: %s",
- mailbox_get_vname(mailbox_transaction_get_mailbox(t)),
- attr_name,
- mailbox_get_last_error(mailbox_transaction_get_mailbox(t), NULL));
- }
+ attr_name, &attr_value)) < 0) {
+ *error_r = t_strdup_printf("mailbox_attribute_set(%s, %s) failed: %s",
+ mailbox_get_vname(mailbox_transaction_get_mailbox(t)),
+ attr_name,
+ mailbox_get_last_error(mailbox_transaction_get_mailbox(t), NULL));
+
}
return ret;
test_mail_attribute_set(t, FALSE, FALSE, mcp_old_box_key_id,
mcp_old_box_key, &error);
+ (void)mailbox_transaction_commit(&t);
+
+ t = mailbox_transaction_begin(box, 0);
+
error = NULL;
/* try to load old key */