Some run wood fires for the last fires of the season to get a good coating of creosote in the flues and pipe. That helps reduce rust.
I tried it for the first time at the end of last season and had far less rust by startup for this season. Just a few small spots that the creosote didn't really get to.
But you need to clean out the fly ash, or you'll just be coating the fly ash and not the metal.