mime type when adding attachment
- To: mutt-users <mutt-users@xxxxxxxx>
- Subject: mime type when adding attachment
- From: bill lam <cbill.lam@xxxxxxxxx>
- Date: Mon, 3 Nov 2008 13:04:04 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:mime-version:content-type :content-disposition:user-agent; bh=SgKH2lWWkYHbnuVZO37yTPqczK7e6yKeFDswmEsYasg=; b=My8Mc8cWEl2QWZqcj4fe1ceh+jJTH8EiKoqd5zQQZaZRgy9YPDTvAJeG4ouO68MjcG 1kdp1yiiYXWhJAYJtylp8vIB+rnqMgMB4O+5NtY50/+l2JReHyPjAKWc90mAutDlVtlZ rwHaz+HvSrbUTa5WMT91pNxGHkCeFNddFpyYo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; b=dVVUrsrNsR0c83Mij1EPBBklIYTDNOigkgwJoeblfIg7XggoHHjJUGvyLWlMr43ZA9 mLC7FntvMm7EcwO3KO7qK1qhhkmtkFp7pfRgYl8uJlxZCTImHsSQTv9W6A+HS8c6GVg9 mitJdYH/NcPS/+tc1dkcK5nZA1MnGgKrBCPxs=
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users <mutt-users@xxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-10-20)
When I attach an excel file, its mime type is automatically set to
"application/excel", while recipient has no problem (they use
outlook), my mailcap has not associate that with any spreadsheet
program, thus mutt cannot open it. My question is how does mutt
determine mime type when adding attachment so that I could change that
for excel file to "application/vnd.ms-excel" which seem recognised by
both gnumeric and openoffice.
relevant portions of my /etc/mailcap
application/vnd.ms-excel; gnumeric '%s'; edit=gnumeric '%s'; description="MS
Excel spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/x-excel; gnumeric '%s'; edit=gnumeric '%s'; description="MS Excel
spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/x-ms-excel; gnumeric '%s'; edit=gnumeric '%s'; description="MS
Excel spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/x-msexcel; gnumeric '%s'; edit=gnumeric '%s'; description="MS Excel
spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/x-xls; gnumeric '%s'; edit=gnumeric '%s'; description="MS Excel
spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/x-dos_ms_excel; gnumeric '%s'; edit=gnumeric '%s'; description="MS
Excel spreadsheet"; test=test -n "$DISPLAY"; nametemplate=%s.xls
application/vnd.ms-excel.sheet.macroEnabled.12; soffice -no-oosplash -calc
'%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n "$DISPLAY";
description="Office Open XML Spreadsheet with Macros Enabled";
nametemplate=%s.xlsm
application/vnd.ms-excel.template.macroEnabled.12; soffice -no-oosplash -calc
'%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n "$DISPLAY";
description="Office Open XML Spreadsheet Template with Macros Enabled";
nametemplate=%s.xltm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; soffice
-no-oosplash -calc '%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n
"$DISPLAY"; description="Office Open XML Spreadsheet"; nametemplate=%s.xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.template; soffice
-no-oosplash -calc '%s'; edit=soffice -no-oosplash -calc '%s'; test=test -n
"$DISPLAY"; description="Office Open XML Spreadsheet Template";
nametemplate=%s.xltx
application/vnd.lotus-1-2-3; soffice -no-oosplash -calc '%s'; edit=soffice
-no-oosplash -calc '%s'; test=test -n "$DISPLAY"; description="Lotus 1-2-3
spreadsheet"; nametemplate=%s.123
application/vnd.ms-excel; soffice -no-oosplash -calc '%s'; edit=soffice
-no-oosplash -calc '%s'; test=test -n "$DISPLAY"; description="Microsoft Excel
Document"; nametemplate=%s.xls
application/msexcel; soffice -no-oosplash -calc '%s'; edit=soffice -no-oosplash
-calc '%s'; test=test -n "$DISPLAY"; description="Microsoft Excel Document";
nametemplate=%s.xls
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3