A man was sentenced to federal prison after writing a threatening letter to the Mobile County District Attorney’s Office in March 2024.