mu4e-shr2text does not anymore retrieve images.

When HTML emails contain references to remote images, retrieving these images
leaks informationo.  For example, the sender can see when I openend the email
and from which computer (IP address).  For this reason, it is preferrable to
not retrieve images.
This commit is contained in:
Titus von der Malsburg 2014-11-14 13:55:11 -08:00 committed by djcb
parent 8f9499c0c9
commit ab9a7c3a6d
1 changed files with 9 additions and 1 deletions

View File

@ -46,7 +46,15 @@
`mu4e-html2text-command' in a new enough emacs. Based on code by
Titus von der Malsburg."
(interactive)
(let ((dom (libxml-parse-html-region (point-min) (point-max))))
(let ((dom (libxml-parse-html-region (point-min) (point-max)))
;; When HTML emails contain references to remote images,
;; retrieving these images leaks information. For example,
;; the sender can see when I openend the email and from which
;; computer (IP address). For this reason, it is preferrable
;; to not retrieve images.
;; See this discussion on mu-discuss:
;; https://groups.google.com/forum/#!topic/mu-discuss/gr1cwNNZnXo
(shr-inhibit-images t))
(erase-buffer)
(shr-insert-document dom)
(goto-char (point-min))))