aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--piem-gnus.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/piem-gnus.el b/piem-gnus.el
index 4afa747..237eeb1 100644
--- a/piem-gnus.el
+++ b/piem-gnus.el
@@ -69,7 +69,7 @@ message itself if it looks like a patch."
(delq nil
(mapcar (lambda (handle)
(and (listp handle)
- (member (caar (cdr handle))
+ (member (mm-handle-media-type handle)
'("text/x-diff" "text/x-patch"))
(with-temp-buffer
(mm-display-inline handle)