An Austrian court has convicted a woman of threatening “CSI: Miami” star David Caruso and sentenced her to seven months in jail in a secure psychiatric unit, officials said Wednesday.

A court in the western city of Innsbruck handed down the sentence Tuesday, court spokesman Thomas Lechner said.

Lawyer Andreas Grabenweger said his client will appeal the ruling.

Prosecutors said the woman, identified only as Heidemarie S., allegedly sent more than 100 letters to the American actor in pursuit of an autograph and then sent a death threat in 2007 when he refused to give her one.

A court-appointed psychiatrist testified earlier that the woman has a “profound personality disorder.”

The woman, who is in her early 40s, twice failed to show up for her trial and was taken into custody last month after she was arrested in Mexico on immigration charges anddeported back to Austria.