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.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to