When a chimney develops damaged joints, allowing moisture entry, it is recommended to remove the damaged portions and replace them with proper materials. This repair is known as repointing.