N.M. Stat. § 42-4-14
[Improvements and mesne profits; time; claims; notices.]
In all actions of ejectment, when the defendant or tenant in possession in such suit
shall have title of the premises in dispute either by grant from the government of Spain,
Mexico or the United States, deed of conveyance founded on a grant or entry for the
same, tax deed or other color of title, such defendant or defendants may file at the time
of the filing of the pleas in said cause a notice to the plaintiff, that on the trial of said
cause he or they will prove what improvement he or they may have made on the said
lands in dispute and the value thereof. After which notice being filed, the said plaintiff
may file a notice within twenty days thereafter, to the said defendant or defendants or
tenant in possession, that in like manner he or they will prove the amount of the mesne
profits of the said premises: provided, that no improvements shall be taken into
valuation and allowed for, that shall have been made after the execution of the original
summons in such suit or after the plaintiff, his agent or attorney, shall have served said
defendant or tenant in possession with a written notice that he or they claim title to the
land, specifying in said notice the nature of the claim; nor shall any mesne profits be
valued and recovered except such as may have accrued after the commencement of
the suit or notice given as aforesaid.