[Mimedefang] quarantine_entire_message: I don't get it

David F. Skoll dfs at roaringpenguin.com
Wed Sep 22 09:43:44 EDT 2004


On Wed, 22 Sep 2004, Paul Boven wrote:

> > 	my $msg = MIME::Entity->build(Type => "text/plain",
> > 				      Encoding => "7bit",
> > 				      Data => ["first line.\n",
> > 					       "Second line.\n"
> > 					      ]);
> >         replace_entire_message($msg);
> >         action_change_header("Subject", "Virus warning");

> This generally works, as long as the message in question was a
> "text/plain" message to begin with.

Oops.  Try doing this:

	$msg->make_multipart();

right before the call to replace_entire_message.  For historical reasons,
MIMEDefang always likes a multipart message if it changes the message
body.

Regards,

David.



More information about the MIMEDefang mailing list