> Question: How do I replace the entire message body with a new one? Read the manual page - mimedefang-filter(5) There's a function for this: replace_entire_message($entity)