MAIL_ERROR_PARAMS indicates that there was something wrong with the
parameters itself. But the caller can't know (at least with current APIs)
if it's a read-only attribute it's trying to change before actually doing it.
break;
case MAIL_ATTRIBUTE_INTERNAL_RANK_AUTHORITY:
if (iattr->set == NULL) {
- mail_storage_set_error(t->box->storage, MAIL_ERROR_PARAMS, t_strdup_printf(
+ mail_storage_set_error(t->box->storage, MAIL_ERROR_NOTPOSSIBLE, t_strdup_printf(
"The /%s/%s attribute cannot be changed",
(type == MAIL_ATTRIBUTE_TYPE_SHARED ? "shared" : "private"), key));
return -1;