More efficient determination of attribution text

Only parse headers/from address as needed
Fix setting attribution text when from address doesn't exist.
Remove incorrect placeholders