Clean up the plugin config to be inside the mail script