You can also just rely on headers for spam status and comment this line to stop adding the report: action_add_part($entity, "text/plain", "-suggest", "$report\n", "SpamAssassinReport.txt", "inline"); Regards, KAM