[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

und wieder procmail



Moin Moin,

ich hab meine .procmailrc grad um eine html/text Konvertierung erweitert.

>:0
>* ^Content-Type:.*html
>{
>:0 bf
>| w3m -dump -cols 80 -o display_charset=utf8 -T text/html \
>&& echo "" \
>&& echo "=================" \
>&& echo "Das war mal HTML!" \
>&& echo "================="
>
>:0 hf
>| formail -I"Content-Type: text/plain"
>}

Mit den Testmails von Heise Security funktioniert das auch gut.
Bekomme ich aber eine Email über einen Firmenserver (Exchange) dann arbeitet
das Script nicht. Im Quelltext der Email kann man erkennen, das der Body aus
Text und HTML besteht. Also je nach dem schon passend angezeigt wird.

>[...]
>Content-Type: text/plain; charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>[...]
>
>Content-Type: text/html; charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><html>
><head>
><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
>1">
><meta name=3D"Generator" content=3D"Microsoft Exchange Server">
><!-- converted from rtf -->
></head>
><body>
><div>[...]</div>
></span></font>
></body>
></html>

Weiß jemand wie man es hin bekommt, das auch bei diesen Emails das HTML komplett
konvertiert wird?

Vielen Dank und Gruß Gregor


Reply to: