[IMP]mail: rename _set_model to _set_model_id and set model false when model_id is false.