Shutterstock
A convicted child molester has agreed to plead guilty to mailing a threatening letter from jail to President Barack Obama — albeit to the wrong address.

PITTSBURGH — A convicted child molester has agreed to plead guilty to mailing a threatening letter from jail to President Barack Obama — albeit to the wrong address.

The plea deal was revealed Monday at a status conference on a federal indictment returned last February against 35-year-old Joseph Savage.

Savage was in the Fayette County Prison awaiting trial in October 2012 when he sent the letter threatening to "torture and murder" the president and harm an unspecified relative. The letter was sent to 1400 Pennsylvania Ave. in Washington. The White House, at 1600 Pennsylvania Ave., received it anyway and turned it over to the Secret Service.

Defense attorney Jon Pushinsky says Savage will plead guilty on March 4 in exchange for a 2½-year federal prison sentence.

He's already serving up to 25 years in the molestation case.