The sexual-related assault case that has been brought against comedian Bill Cosby may be on shaky grounds after a leaked email from 2005 civil disposition supposedly gives Cosby immunity from any criminal case to be brought against him.

The entertainment mogul, currently facing three felony counts of sexual-related assault, made an agreement with a district attorney in Montgomery County, Pennsylvania that Cosby’s disposition in that case could not be used in any future criminal matters. The verbal agreement made between Cosby’s legal team and  District Attorney Bruce Castor stemming from Andrea Constant’s sexual assault allegations in 2004 is unveiled in an email from Castor, which says, “I can see no possibility that Cosby’s deposition could be used in a state criminal case, because I would have to testify as to what happened, and the deposition would be subject to suppression.”

The email, which was uncovered by CNN, was sent by the former district attorney three months before Cosby was brought up on charges. Constant alleges that Mr. Cosby asaulted her in his home in 2004.

With dozens of women claiming that the wholesome TV dad sexually violated them, does it come down to the Constant case to reveal that Cosby will be let off the hook?

Shares