[Mimedefang] external filter and binary parts

Rudolph Pereira rudolph at usyd.edu.au
Wed Nov 13 18:10:01 EST 2002


On Wed, Nov 13, 2002 at 10:34:15AM -0500, David F. Skoll wrote:
> You have to set the encoding.  The simplest way is to use the MIME::Entity
> and MIME::Head functions, like this:
> 
> 
> 	action_external_filter($entity, "my_amazing_filter");
> 	my $head = $entity->head;
> 	$head->mime_attr("content-type" => "application/x-tar");
> 	$head->mime_attr("content-name" => "foo.tar.gz");
> 	$head->mime_attr("content-transfer-encoding" => "base64");

Thanks, that (setting the encoding) was the problem. I had been using
action_defang after the filter 
and giving it the tar content type, assuming (somehow)
mimetools would work out the encoding correctly.

Much appreciated.



More information about the MIMEDefang mailing list