[Mimedefang] <kein Betreff>

David F. Skoll dfs at roaringpenguin.com
Wed Mar 7 08:59:29 EST 2007


Klaus Meyer wrote:

> I tried to change the header with
> action_change_header("Content-Type","text/plain;\n\tcharset=\"iso-8859-1\"");
> but mimedefang rebuilds the header with us_ascii

The Content-Type: header is treated a bit specially by MIMEDefang.  If
you want to change it, in addition to calling action_change_header,
you also need to do:

    $entity->head->mime_attr('content-type.charset' => 'iso-8859-1');

where $entity is the top-level MIME entity passed in to filter_end.

Regards,

David.



More information about the MIMEDefang mailing list