On Fri, Oct 04, 2002 at 06:44:58PM -0700, John Iverson wrote:

>>I am however having a problem with sending attached images with the
>>correct mime types --- they're appearing as application/octet-stream
>>rather than image/jpeg. Have I missed something in the mailcap file?
>
>Maybe /etc/mime.types or ~/.mime.types instead, something like:
>
>   image/jpeg  jpeg jpg jpe

Yes, that's what I thought too. Unfortunately it didn't work.  My
~/.mailcap currently looks like this (I've broken the long lines for
this email):

-------------------
image/jpeg jpeg jpg jpe ; qiv -m %s ; nametemplate=%s.jpg
image/gif gif ; qiv -m %s ; nametemplate=%s.gif
image/png png ; qiv -m %s ; nametemplate=%s.png

application/msword ; winword %s ; nametemplate=%s.doc;
application/ms-powerpoint ; powerpnt %s ; nametemplate=%s.ppt
application/pdf ; acroread %s ; nametemplate=%s.pdf

application/msword ; (wvHtml %s - | lynx -force_html -stdin -dump) \
 2>/dev/null; nametemplate=%s.doc; copiousoutput

application/pdf ; pdftotext %s - 2>/dev/null ; nametemplate=%s.pdf; \
 copiousoutput

text/html ; lynx -dump -force_html %s; copiousoutput

image/* ; (anytopnm %s | pnmscale -xysize 80 46 | ppmtopgm | pgmtopbm | \
 pbmtoascii -1x2 ) 2>/dev/null; copiousoutput
-------------------

(This is on Linux - the winword/powerpnt entries run crossover office)

James.

Reply via email to