Related Rule
Sri Lanka
Practice Relating to Rule 125. Correspondence of Persons Deprived of Their Liberty
Sri Lanka’s Prisons Ordinance (1878), as amended to 2005, states:
75. Whoever, without lawful authority, conveys or attempts to convey any letter or other writing to any prisoner in custody, whether within or without any prison, or from any such prisoner to any other person, and every prison officer who aids and abets any person in committing any offence under this section, shall be guilty of an offence and on conviction be liable to a fine not exceeding fifty rupees, or to imprisonment of either description, for any period not exceeding three months, or to both.
78. A prisoner shall be guilty of an offence against prison discipline if he –
(xvi) without the authority of a prison officer, communicates whether by writing, speech or gesture with any person who is not connected with the administration of the prison;
(xxiii) writes or receives any unauthorized letter or communication …
94. (1) The Minister may from time to time make all such rules, not inconsistent with this Ordinance or any other written law relating to prisons, as may be necessary for the administration of the prisons in Sri Lanka and for carrying out or giving effect to the provisions and principles of this Ordinance.
(2) In particular and without prejudice to the generality of the foregoing powers, the Minister may make rules for all or any of the following purposes or matters:–
(h) … correspondence or other communication with prisoners. 
Sri Lanka, Prisons Ordinance, 1878, as amended to 2005, Articles 75, 78(xvi) and (xxiii), 94(1) and (2)(h).
These articles apply to persons deprived of their liberty under Sri Lanka’s Emergency Regulations (2005) pursuant to section 19 of these regulations.
Sri Lanka’s Emergency Regulations (2005), as amended to 2008, states:
19. (1) Where the Secretary to the Ministry of Defence is of [the] opinion with respect to any person that, with a view to preventing such person –
(a) from acting in any manner prejudicial to … national security or to the maintenance of public order, or to the maintenance of essential services; or
(b) from acting in any manner contrary to any of the provisions of sub-paragraph (a) or sub-paragraph (b) of paragraph (2) of regulation 40 or regulation 25 of these regulations, it is necessary so to do, the Secretary may order that such person be taken into custody and detained in custody …
(3) … [W]here such person is so detained in a prison established under the Prisons Ordinance –
(a) all the provisions of Ordinance other than the provisions of Part IX of that Ordinance [allowing prisoners to receive visits from, and communicate with, their relations, friends and legal adviser], and
(b) all the rules made under that Ordinance other than the rules which relate to … the correspondence of, prisoners,
shall apply to such person as though he were a civil prisoner within the meaning of that Ordinance :
Provided however, that the Inspector-General of Police may, where he considers it expedient so to do –
(b) permit … the correspondence of, such person in such manner and at such time and place, as the Inspector-General of Police may from time to time direct. 
Sri Lanka, Emergency Regulations, 2005, as amended to 2008, Sections 19(1) and (3).
Sri Lanka’s Code of Criminal Procedure (Special Provisions) Act (2007) states:
[A]ny peace officer shall not detain in custody or otherwise confine a person arrested without a warrant for a longer period than under all the circumstances of the case is reasonable and such period shall not exceed twenty-four hours …
Provided that where the arrest is in relation to an offence as is specified in the Schedule to this Act, such period of detention in police custody may, … be extended upon an order made … by the Magistrate for a further period not exceeding twenty-four hours …:
Provided further, that any person arrested and detained for a further period shall be afforded an opportunity … to communicate with any relative or friend of his choice during the period of such detention. 
Sri Lanka, Code of Criminal Procedure (Special Provisions) Act, 2007, Article 2.
In 2009, in its combined third and fourth periodic reports to the Committee against Torture, Sri Lanka stated:
The … [Directives Issued by the President Commander-in-Chief of the Armed Forces and Minister of Defence on 7 July 2006] also take[] measures to regulate arrests:
(d) The Directives … specify that the person arrested should be afforded reasonable means of communicating with a relative or friend. 
Sri Lanka, Combined third and fourth periodic reports to the Committee against Torture, 23 September 2010, UN Doc. CAT/C/LKA/3-4, submitted 17 August 2009, Annex, § 33(d); see also § 29 of the report.