diff options
Diffstat (limited to 'piem-notmuch.el')
-rw-r--r-- | piem-notmuch.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/piem-notmuch.el b/piem-notmuch.el index cd3153a..ccfae75 100644 --- a/piem-notmuch.el +++ b/piem-notmuch.el @@ -91,8 +91,8 @@ message itself if it looks like a patch." (let ((patches (delq nil (mapcar (lambda (part) - (and (member (plist-get part :content-type) - '("text/x-diff" "text/x-patch")) + (and (piem-am-patch-attachment-p + (plist-get part :content-type)) (plist-get part :content))) (plist-get body :content))))) (when patches |