The only proper answer to a question about a letter to a judge is that you NEVER send a letter to a judge. A judge is not even ethically allowed to read such a letter, but if s/he did, it would most likely do you more harm than good. You do everything through an attorney, either hired or court appointed. When you have a ten year old case, you are looking at getting it dismissed due to speedy trial issues. If for some reason, you couldn't prevail on a speedy trial motion, then they are going to have proof issues - memories faded, witnesses no longer available, cops retired, etc. etc. Talk to a lawyer. Don't do anything stupid, like writing to the judge. Good luck to you.
Yes, the Judge will take your letter into consideration, but whether that will help you avoid jail all depends on your case and I don't have enough information to advise you further. For example, what were your charges, what is your version of the facts, why didn't you take care of theis case back then, is there a warrant for your arrest an how much is the bail?
Debra S. White, Esq.
Los Angeles Criminal Law Attorney
Los Angeles Criminal Lawyer | Warrant Recall
This answer is based on California law and procedure and does not create an attorney-client relationship.
You need an attorney to deal with warrants and underlying offenses. The judge will tke into consideration all evidence with respect to your health/mental issues. Get an attorney and get this behind you.