A court in Kochi has sentenced a man to ten years in prison for an acid attack motivated by a past enmity.