When the mortgage provides for an attorney's fee in case of foreclosure, and an attorney at law of the state is employed to conduct the same, the mortgagee or the mortgagee's heirs, personal representatives or assigns, may, upon foreclosure, collect or retain such fee, but not in excess of the sum provided by section 582.01. When no such attorney is employed, if any sum as or for such fee be included in the amount for which the premises are sold, such sum shall be paid in money by the purchaser to the sheriff before the execution of the certificate of sale, and shall be paid by the sheriff to the mortgagor, or those having the mortgagor's estate in the mortgaged premises.
History:(9647) RL s 4500; 1986 c 444