—(1) No person shall be chargeable with any rents or profits of any immovable property which he has bona fide paid over to any person of whom he bona fide held the rents or profits notwithstanding it afterwards appears that the person to whom such payment was made had no right to receive the rents or profits.
(2) If any person erects any building or makes an improvement upon any lands held by him bona fide in the belief that he had an estate in fee simple or other absolute estate, and that person, his executor or assign, or his under-tenant is evicted from such lands by any person having a better title, the person who erected the building or made the improvement, his executor or assign, shall be entitled —
to have the value of the building or improvement so erected or made during such holding and in such belief estimated and paid or secured to him; or
at the option of the person causing the eviction, to purchase the interest of such person in the lands at the value thereof irrespective of the value of the building or improvement.
(3) The amount to be paid or secured in respect of such building or improvement shall be the estimated value of the building and improvement at the time of such eviction.
(4) Every tenant holding over after the determination of his tenancy shall be chargeable, at the option of his landlord, with double the amount of his rent until possession is given up by him or with double the value during the period of detention of the land or premises so detained, whether notice to that effect has been given or not.
(5) When any writ of summons issued by a landlord against a tenant for the recovery of immovable property is served on or comes to the knowledge of any sub-tenant of the plaintiff’s immediate tenant, the sub-tenant being an occupier of the whole or any part of the premises sought to be recovered, he shall forthwith give notice thereof to his immediate landlord, under penalty of forfeiting 3 years’ rack rent of the premises held by the sub-tenant to the person of whom he holds, to be recovered by such person by action in any court having jurisdiction.