aboutsummaryrefslogtreecommitdiff
path: root/piem-gnus.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-11-22 15:46:07 -0500
committerKyle Meyer <kyle@kyleam.com>2020-11-22 19:50:56 -0500
commit72640c7b22f599369d799ce11d8bb55e10c78eeb (patch)
tree5e2f6f95bf07ab7ec17683dd12bb594f2f9d3235 /piem-gnus.el
parent19c46db99b89acd8496392c7cfcf9e6cd9214659 (diff)
downloadpiem-72640c7b22f599369d799ce11d8bb55e10c78eeb.tar.gz
gnus, notmuch: Share "attachment is patch?" logic
This will gain another condition. Avoid repeating it across two spots. Message-Id: <20201122204609.12604-3-kyle@kyleam.com>
Diffstat (limited to 'piem-gnus.el')
-rw-r--r--piem-gnus.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/piem-gnus.el b/piem-gnus.el
index 237eeb1..c1551ce 100644
--- a/piem-gnus.el
+++ b/piem-gnus.el
@@ -69,8 +69,8 @@ message itself if it looks like a patch."
(delq nil
(mapcar (lambda (handle)
(and (listp handle)
- (member (mm-handle-media-type handle)
- '("text/x-diff" "text/x-patch"))
+ (piem-am-patch-attachment-p
+ (mm-handle-media-type handle))
(with-temp-buffer
(mm-display-inline handle)
(buffer-substring-no-properties