Twenty days' notice of the filing of the claim of the overseer or other officer shall be given in writing to residents. Nonresidents shall be notified by publication in a legal county newspaper.