[Alpine-info] How to make Alpine recognize .doc, .odt, .docx
Mirko Hessel-von Molo
mirkoh at upb.de
Thu Feb 2 09:01:04 PST 2012
On Thu, 2 Feb 2012, Mikael Böök wrote:
> Thanks again for your advice. I created ~/mailcap and stored the lines
> application/MSWORD; /opt/libreoffice3.4/program/swriter '%s'; "$DISPLAY"
> application/vnd.oasis.opendocument.text; /opt/libreoffice3.4/program/swriter
> '%s'; "$DISPLAY"
> /opt/libreoffice3.4/program/swriter '%s';$
> application/x-rtf /opt/libreoffice3.4/program/swriter '%s'; "$DISPLAY"
> there, and this helps, except for docx and rtf.
As Hugh pointed out, the relation "file suffix" -> "mime-type" is done in
/etc/mime.types, while /etc/mailcap and the like define the relation
"mime-type" -> "displaying application". So if it doesn't work for docx
and rtf, it might be that
a) the emails within which you receive these attachments do not properly
identify their mime-type (saying e. g. "octet-stream" instead), and
b) your /etc/mime.types lacks entries for these suffixes.
More information about the Alpine-info