Indonesia sentences militant to 18 years in prison

Indonesian Islamic militant Pepi Fernando, right, leaves the courtroom after his trial at the West Jakarta District Court in Jakarta, Indonesia, Monday, March 5, 2012. The court has sentenced Fernando to 18 years in prison for a series of mail bombs that targeted moderate Muslim leaders and police. (AP Photo/Tatan Syuflana)
— AP

Indonesian Islamic militant Pepi Fernando, right, leaves the courtroom after his trial at the West Jakarta District Court in Jakarta, Indonesia, Monday, March 5, 2012. The court has sentenced Fernando to 18 years in prison for a series of mail bombs that targeted moderate Muslim leaders and police. (AP Photo/Tatan Syuflana)
/ AP

JAKARTA, Indonesia 
An Indonesian court has sentenced an Islamic militant to 18 years in prison for a series of mail bombs that targeted moderate Muslim leaders and police.

Several people were injured in the attacks.

The West Jakarta District Court ruled Monday that Pepi Fernando was guilty of violating the country's anti-terrorism law.

His group, uncovered last year, was also allegedly plotting the assassination of Indonesia's president and a failed Good Friday attack on a church.

Indonesia, the world's most populous Muslim nation, has been battling terrorists since 2002 when al-Qaida-linked militants attacked two nightclubs on Bali island, killing 202 people, many of them foreign tourists.