summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-11-22 15:46:06 -0500
committerKyle Meyer <kyle@kyleam.com>2020-11-22 19:50:56 -0500
commit19c46db99b89acd8496392c7cfcf9e6cd9214659 (patch)
tree0f7ffb9b157c943d3187a8b01d08f93250fb8ff7
parent88b445e0e10b4c59f385989218a4f05824da2b75 (diff)
downloadpiem-19c46db99b89acd8496392c7cfcf9e6cd9214659.tar.gz
gnus: Prefer mm-handle-media-type over direct access
-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)