linux-l: F: mailcap-Eintraege werden ignoriert?

Gregor Zattler texmex at uni.de
Fr Okt 19 00:33:28 CEST 2001


Hi LinxerInnen,

weil so viele kaputte MUAs unterwegs sind hab' ich in meine /etc/mailcap am Anfang eingetragen:

# ----- User Section Begins ----- #
application/msword; rtf2htm '%s'|w3m -T text/html;needsterminal;test=file -bi '%s'|egrep "^(application/rtf|text/rtf)$" >/dev/null; description="Microsoft Word Text"; nametemplate=%s.doc
application/msword; /usr/bin/antiword '%s';copiousoutput;test=file -bi '%s' |grep "^application/msword$" >/dev/null;print=antiword -p a4 '%s'|lpr; description="Microsoft Word Text"; nametemplate=%s.doc
application/octet-stream; /usr/bin/antiword '%s';copiousoutput;test=file -bi '%s'|grep "^application/msword$" >/dev/null;print=antiword -p a4 '%s'|lpr; description="Microsoft Word Text"; nametemplate=%s.doc
application/octet-stream; rtf2htm '%s'|w3m -T text/html;needsterminal;test=file -bi '%s'|egrep "^(application/rtf|text/rtf)$" >/dev/null
application/rtf; rtf2htm '%s'|w3m -T text/html;needsterminal
text/rtf; rtf2htm '%s'|w3m -T text/html;needsterminal
# -----  User Section Ends  ----- #

Die Idee ist, z. B. mit dem ersten Eintrag fälschlich als
application/msword deklarierte Dateien doch richtig als RTF-Dateien zu
identifizieren und sie deshalb mit einem rtf2html -Filter anzugucken.

Das ganze setzt das sid- 'file' voraus, weil das als Ergebnis eben
auch MIME types auswerfen kann.


Leider funktionieren die Einträge nicht: Wenn ich eine als
application/msword verkleidetes Attachment in mutt angucken will wird
antiword aufgerufen und das Ergebnis ist eine leere Seite im pager.

Ähnliches passiert mit den anderen Einträgen für falsch deklarierte
Dateitypen. 

Was mach' ich da falsch?

Ciao, Gregor



Mehr Informationen über die Mailingliste linux-l