Package: vm
Version: 8.1.0-1
Severity: normal

I am using utf-8 locale both on the console and within emacs and vm
with w3m to read HTML in emails. I noticed that non utf-8 HTML Mime
attachments in emails (in my region, this is, most often, with iso-8859-1
charset) are not displayed correctly. If I save the attachment and use 'w3m
-dump' outside of emacs, everything is fine.

Modifying vm-mime.el as follows solves the problem.

$ diff vm-mime.el /usr/share/emacs/site-lisp/vm/vm-mime.el 
2269c2269
<      (format "w3m -dump -T text/html" charset charset)
---
>      (format "w3m -dump -T text/html -I %s -O %s" charset charset)

I am attaching below, the section of my .emacs file which may be relevant to
this problem:

;;-------------------------------------------------------------------
;; Mime config and reading mail
;;-------------------------------------------------------------------
; No image in emacs
(setq vm-imagemagick-identify-program nil)
(setq vm-imagemagick-convert-program nil)
; No default image display
(setq vm-auto-displayed-mime-content-type-exceptions '("image"))
; UFT-8ism
(setq vm-coding-system-priorities '(utf-8 iso-8859-1 iso-8859-15))
; Fix for buggy windows mail from 
http://www.emacswiki.org/emacs/ViewMailOtherCustomizations (substitute
windows-1252 for iso-8859-1)
(add-to-list 'vm-mime-mule-charset-to-coding-alist
  '("iso-8859-1" windows-1252))
; Automatic detect. if possible
(setq vm-infer-mime-types t)
; Use w3m to view HTML messages
(setq vm-mime-text/html-handler "w3m")
; Don't use w3 for browsing
(setq vm-url-browser 'browse-url)
; Charset for attachements that I am sending
(setq vm-mime-charset-completion-alist
  '(
     ("us-ascii")
     ("utf-8")
     ("iso-8859-1")
     ("iso-8859-15")
    )
)
                              

-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686-bigmem (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=UTF-8) (ignored: LC_ALL set to 
en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vm depends on:
ii  dpkg                      1.15.8.11      Debian package management system
ii  emacs [emacsen]           23.2+1-7       The GNU Emacs editor (metapackage)
ii  emacs23 [emacsen]         23.2+1-7       The GNU Emacs editor (with GTK+ us
ii  install-info              4.13a.dfsg.1-6 Manage installed documentation in 
ii  make                      3.81-8         An utility for Directing compilati
ii  ucf                       3.0025+nmu1    Update Configuration File: preserv

vm recommends no packages.

Versions of packages vm suggests:
ii  exim4                    4.72-6+squeeze2 metapackage to ease Exim MTA (v4) 
ii  exim4-daemon-light [mail 4.72-6+squeeze2 lightweight Exim MTA (v4) daemon
ii  stunnel4 [stunnel]       3:4.29-1        Universal SSL tunnel for network d

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to