[Mimedefang] RE: html to text (Matt Kozloski)
Kozloski, Matthew
matthew.kozloski at strus.com
Tue Mar 12 11:46:56 EST 2002
Great idea -- I had to use -force_html to make it work. Like this:
if ($type eq "text/html") {
action_external_filter($entity,
"lynx -nobold -nolist -dump -force_html FILTERINPUT >
FILTEROUTPUT");
$entity->head->mime_attr("content-type" => "text/plain");
}
>If you want to convert HTML to text and are not on a busy mail server,
>something like this should work:
>
>if ($type eq "text/html") {
> action_external_filter($entity,
> "lynx -nobold -nolist -dump FILTERINPUT > FILTEROUTPUT");
> $entity->head->mime_attr("content-type" => "text/plain");
>}
More information about the MIMEDefang
mailing list