Hi everybody,

I'm having problems opening text/html MIME attachments in Google Chrome
(or Safari) on OS X 10.6.  (The same setup [with some different paths]
works on a 10.5 machine, but I think OS X is not the culprit.)

I have the following mailcap (excerpt):

  text/html; ~/unix/bin/view_attachment.sh %s html
  text/html; lynx -dump %s -display_charset=UTF-8; nametemplate=%s.html; 
copiousoutput
  application/MSWORD; ~/unix/bin/view_attachment.sh %s -

In my muttrc I have:

  alternative_order text/plain
  auto_view text/html

If I view a text/html attachment it is displayed inline using lynx.
I.e. the first mailcap entry is ignored.  (If I remove the second mailcap
entry, then I get an error message that no mailcap entry for text/html
is found.)

Here's the output from `mutt -d 2`:

  [2011-04-12 00:40:18] Checking mailcap file: 
/Users/he-sk/unix/etc/mutt/mailcap
  [2011-04-12 00:40:18] mailcap entry: 
  [2011-04-12 00:40:18] mailcap entry: text/html; ~/unix/bin/view_attachment.sh 
%s html
  [2011-04-12 00:40:18] mailcap entry: text/html; lynx -dump %s 
-display_charset=UTF-8; nametemplate=%s.html; copiousoutput
  [2011-04-12 00:40:18] field: nametemplate=%s.html
  [2011-04-12 00:40:18] field: copiousoutput
  [2011-04-12 00:40:18] Checking mailcap file: 
/Users/he-sk/unix/etc/mutt/mailcap
  [2011-04-12 00:40:18] mailcap entry: 
  [2011-04-12 00:40:18] mailcap entry: text/html; ~/unix/bin/view_attachment.sh 
%s html
  [2011-04-12 00:40:18] mailcap entry: text/html; lynx -dump %s 
-display_charset=UTF-8; nametemplate=%s.html; copiousoutput
  [2011-04-12 00:40:18] field: nametemplate=%s.html
  [2011-04-12 00:40:18] field: copiousoutput
  [2011-04-12 00:40:18] Automatische Anzeige mittels: lynx -dump 
'/var/folders/eD/eDWR7K7FHYGftbX1EzUGBE+++TM/-Tmp-//mutt.html' 
-display_charset=UTF-8
  [2011-04-12 00:40:18] fill_buffer: Seen attachment marker.

The script view_attachment.sh is from here:
http://linsec.ca/Using_mutt_on_OS_X

The script works, e.g. I can open Word or PDF files or images.

Any idea what's going on here?  Curiously, the mailcap file is checked
twice!  If I'm opening Word or PDF files it is only checked once.

Thanks,
Viktor

Reply via email to