* mu4e: always put images (inline or attachment) in the list of attachments

This commit is contained in:
djcb
2012-08-26 23:51:31 +03:00
parent a2b57b32d2
commit 6f19449856

View File

@ -374,8 +374,9 @@ is nil, and otherwise open it."
;; numbers and the part indices ;; numbers and the part indices
(remove-if (remove-if
(lambda (part) (lambda (part)
(or (or ;; remove if it's not an attachment, unless it's an image
(not (member 'attachment (plist-get part :type))) (and (not (member 'attachment (plist-get part :type)))
(not (string-match "^image" (plist-get part :mime-type))))
;; ;;
)) ))
(plist-get msg :parts))) (plist-get msg :parts)))