Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[VM] VM not handling inline HTML mail

7 views
Skip to first unread message

Patrick Healy

unread,
Jul 24, 2019, 8:44:28 AM7/24/19
to viewma...@nongnu.org
I upgraded my Debian distro yesterday and I am now getting the following
message:
"Inline text/html by emacs-w3m display failed: (wrong-type-argument stringp nil)"

I note that this was reported as an issue by agw in January of this
year. I wonder if anybody has a fix for it?

Many thanks, though apologies for abusing an 'info' channel.
--
http://goo.gl/pyor

John Stoffel

unread,
Jul 25, 2019, 2:51:42 PM7/25/19
to Patrick Healy, viewma...@nongnu.org


Patrick> I upgraded my Debian distro yesterday and I am now getting the following
Patrick> message:
Patrick> "Inline text/html by emacs-w3m display failed: (wrong-type-argument stringp nil)"

Patrick> I note that this was reported as an issue by agw in January of this
Patrick> year. I wonder if anybody has a fix for it?

Which emacs version are you using and which verision of viewmail? And
what are your settings for the various vm-mime-* vars?

Patrick> Many thanks, though apologies for abusing an 'info' channel.

No apologies needed!

Happy to try and help you.
John

Patrick Healy

unread,
Jul 26, 2019, 9:19:48 AM7/26/19
to John Stoffel, Patrick Healy, viewma...@nongnu.org
John Stoffel writes (on 25.07.2019):
>
> Patrick> I upgraded my Debian distro yesterday and I am now getting the following
> Patrick> message:
> Patrick> "Inline text/html by emacs-w3m display failed: (wrong-type-argument stringp nil)"

> Which emacs version are you using and which verision of viewmail? And
> what are your settings for the various vm-mime-* vars?

Thanks for you offer of help, John.

Here are the versions I'm using
emacs-version: 26.1
vm-version: 8.1.2

and on searching my .vm.el setup I find the s-expressions below.

Many thanks.

;;;;;
(setq
vm-mime-qp-decoder-program "qp-decode"
vm-mime-qp-encoder-program "qp-encode"
vm-mime-base64-decoder-program "base64-decode"
vm-mime-base64-encoder-program "base64-encode")
(setq vm-mime-default-face-charsets '("us-ascii" "iso-8859-1"))
(setq vm-mime-charset-converter-alist
'(("utf-8" "iso-8859-1" "iconv -c -f utf-8 -t iso-8859-1")))
(and (boundp 'vm-mime-default-face-charsets)
(progn
(add-to-list 'vm-mime-default-face-charsets "Windows-1251")
(add-to-list 'vm-mime-default-face-charsets "Windows-1252")
(add-to-list 'vm-mime-default-face-charsets "Windows-1257")))
; First, don't display iso-8859-1 as-is in default face
(delete "iso-8859-1" vm-mime-default-face-charsets)
; Then substitute windows-1252 for iso-8859-1
(and (boundp 'vm-mime-mule-charset-to-coding-alist)
(add-to-list 'vm-mime-mule-charset-to-coding-alist
'("iso-8859-1" windows-1252)))

(setq vm-infer-mime-types t)
(setq vm-display-using-mime t)
(setq vm-send-using-mime t)
(setq vm-mime-7bit-composition-charset "iso-8859-15"
vm-mime-8bit-text-transfer-encoding "iso-8859-15"
vm-mime-8bit-composition-charset "iso-8859-15")
; vm-mime-8bit-composition-charset 'quoted-printable)
(setq vm-auto-displayed-mime-content-types '("text" "image/jpeg" "image/png" "multipart"))
(setq vm-mime-use-w3-for-text/html t)
(setq vm-mime-alternative-select-method '(favorite "text/plain"))
(setq vm-mime-attachment-auto-type-alist
'(
("\\.JPE?G$" . "image/jpeg")
("\\.jpe?g$" . "image/jpeg")
("\\.gif$" . "image/gif")
("\\.png$" . "image/png")
("\\.tiff?$" . "image/tiff")
("\\.html?$" . "text/html")
("\\.au$" . "audio/basic")
("\\.mpe?g$" . "video/mpeg")
("\\.ps$" . "application/postscript")
("\\.pdf$" . "application/pdf")
("\\.zip$" . "application/zip")
("\\.xls$" . "application/vnd.ms-excel")
("\\.odt$" . "application/vnd.oasis.opendocument.text")
("\\.xlsx$" . "application/vnd.ms-excel")
("\\.csv$" . "application/vnd.ms-excel")
("\\.doc$" . "application/vnd.ms-word")
("\\.docx$" . "application/vnd.ms-word")
("\\.ppt$" . "application/vnd.ms-powerpoint")
)
)
(setq vm-mime-external-content-types-alist
'(;("text/html" "w3m")
("image/gif" "gwenview")
("image/jpeg" "gwenview")
("video/mpeg" "mpeg_play")
("video" "xanim")
; ("application/pdf" "/usr/local/Acrobat4/bin/acroread")
; ("application/pdf" "xpdf")
; ("application/postscript" "gv")
("application/postscript" "okular")
("application/pdf" "okular")
("application/zip" "ark")
("application/ms-tnef" "fentun")
("application/vnd.oasis.opendocument.text" "loffice")
("application/msword" "loffice")
("application/rtf" "loffice")
("application/vnd.ms-excel" "loffice")
("application/vnd.ms-word" "loffice")
("application/vnd.ms-powerpoint" "loffice")
("application/vnd.openxmlformats-officedocument.wordprocessingml.document" "loffice")
("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" "loffice")
("application/vnd.openxmlformats-officedocument.presentationml.presentation" "loffice")
)
)
--
http://goo.gl/pyor

John Stoffel

unread,
Jul 30, 2019, 9:58:53 PM7/30/19
to Patrick Healy, John Stoffel, viewma...@nongnu.org

Hi Patrick,
Work has sucked all my free time lately, so I haven't had a chance to
try to look at this in more detail to help you.

The best thing would be to reset your environment down to the basics
and then try to add back in parts as needed.

I'm going to do this too, since I can't get the shr mode HTML decoding
to work in my patched 8.2.0b that I've been playing with.

If someone could provide a working patch... maybe we could get 8.2.0c
released?

John

0 new messages