(d) any threat that a person shall be prosecuted on a charge of having committed any offence, whether such alleged offence is punishable under this Code or under any other enactment, and whether it has or has not been committed.

(e) any threat that a person shall be detained.

(2) Any expression in this Code referring to a threat includes any offer to abstain from doing, or to procure any other person to abstain from doing, anything the threat of which is a threat of any of the kinds in this section before mentioned.

(3) It is immaterial whether a threat be that the matter thereof will be executed by the person using the threat or against or in relation to the person to whom the threat is used, or by, or against, or in relation to any other person.

(4) It is immaterial whether a threat or offer is conveyed to any person by words, or by writing, or in any other manner, and whether it is conveyed directly, or through any other person, or in any other manner.