mirror of https://github.com/djcb/mu.git
* mu4e: don't error out on parts without mime-type
This commit is contained in:
parent
44e92305e3
commit
162619f6c9
|
@ -243,8 +243,8 @@ marking if it still had that."
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(mu4e~fontify-cited)
|
(mu4e~fontify-cited)
|
||||||
(mu4e~fontify-signature)
|
(mu4e~fontify-signature)
|
||||||
(mu4e~view-make-urls-clickable)
|
(mu4e~view-make-urls-clickable)
|
||||||
(mu4e~view-show-images-maybe msg)
|
(mu4e~view-show-images-maybe msg)
|
||||||
(setq
|
(setq
|
||||||
mu4e~view-buffer buf
|
mu4e~view-buffer buf
|
||||||
mu4e~view-headers-buffer headersbuf)
|
mu4e~view-headers-buffer headersbuf)
|
||||||
|
@ -413,7 +413,8 @@ at POINT, or if nil, at (point)."
|
||||||
;; user-visible numbers and the part indices
|
;; user-visible numbers and the part indices
|
||||||
(remove-if-not
|
(remove-if-not
|
||||||
(lambda (part)
|
(lambda (part)
|
||||||
(let* ((mtype (mu4e-message-part-field part :mime-type))
|
(let* ((mtype (or (mu4e-message-part-field part :mime-type)
|
||||||
|
"application/octet-stream"))
|
||||||
(attachtype (mu4e-message-part-field part :type))
|
(attachtype (mu4e-message-part-field part :type))
|
||||||
(isattach
|
(isattach
|
||||||
(or ;; we consider parts marked either
|
(or ;; we consider parts marked either
|
||||||
|
@ -720,7 +721,9 @@ What browser is called is depending on
|
||||||
(when (and (display-images-p) mu4e-view-show-images)
|
(when (and (display-images-p) mu4e-view-show-images)
|
||||||
(mu4e-view-for-each-part msg
|
(mu4e-view-for-each-part msg
|
||||||
(lambda (msg part)
|
(lambda (msg part)
|
||||||
(when (string-match "^image/" (mu4e-message-part-field part :mime-type))
|
(when (string-match "^image/"
|
||||||
|
(or (mu4e-message-part-field part :mime-type)
|
||||||
|
"application/object-stream"))
|
||||||
(let ((imgfile (mu4e-message-part-field part :temp)))
|
(let ((imgfile (mu4e-message-part-field part :temp)))
|
||||||
(when (and imgfile (file-exists-p imgfile))
|
(when (and imgfile (file-exists-p imgfile))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
|
|
Loading…
Reference in New Issue