From 6f194498561042ab94e2283075b25a51dbeb6a96 Mon Sep 17 00:00:00 2001 From: djcb Date: Sun, 26 Aug 2012 23:51:31 +0300 Subject: [PATCH] * mu4e: always put images (inline or attachment) in the list of attachments --- mu4e/mu4e-view.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index 27877d2b..14e84c1b 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -374,8 +374,9 @@ is nil, and otherwise open it." ;; numbers and the part indices (remove-if (lambda (part) - (or - (not (member 'attachment (plist-get part :type))) + (or ;; remove if it's not an attachment, unless it's an image + (and (not (member 'attachment (plist-get part :type))) + (not (string-match "^image" (plist-get part :mime-type)))) ;; )) (plist-get msg :parts)))