An exactly soluble moving-mirror problem