When an accused person is remanded in custody, the examining magistrate may decide to prohibit him/her from corresponding in writing with one or more persons that he/she designates, in view of the requirements of the investigation, the maintenance of good order and security or the prevention of offences. For the same reasons, he may decide to withhold correspondence written by the detainee or addressed to him.
The decisions referred to in the first paragraph are subject to the same conditions.
The decisions referred to in the first paragraph are substantiated and notified to the detainee by any means without delay. The detainee may refer the decision to the president of the investigating chamber, who shall give a ruling within one month in a written, reasoned decision that may not be appealed.
After the close of the investigation, the powers of the investigating judge are exercised by the public prosecutor in accordance with the forms and conditions set out in this article. The same shall apply in all other cases where a person is remanded in custody.
Where the proceedings are pending on appeal, the powers of the public prosecutor shall be vested in the public prosecutor.
Other decisions or opinions issued by the public prosecutor may be appealed.
In accordance with the provisions of this article, the detainee or the public prosecutor may appeal to the president of the investigating chamber against other decisions or opinions issued by the judicial authority provided for by the regulatory provisions of this code or by the prison code and relating to the terms and conditions of pre-trial detention or the exercise of the rights of a person remanded in custody.