diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-11-22 15:46:07 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-11-22 19:50:56 -0500 |
commit | 72640c7b22f599369d799ce11d8bb55e10c78eeb (patch) | |
tree | 5e2f6f95bf07ab7ec17683dd12bb594f2f9d3235 /piem.el | |
parent | 19c46db99b89acd8496392c7cfcf9e6cd9214659 (diff) | |
download | piem-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.el')
-rw-r--r-- | piem.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -561,6 +561,11 @@ This function depends on :url being configured for entries in ;;;; Patch handling +(defun piem-am-patch-attachment-p (type) + "Return non-nil if an attachment should be treated as a patch. +TYPE is a media type such as \"text/x-patch\"." + (member type '("text/x-diff" "text/x-patch"))) + (defun piem-extract-mbox-info (&optional buffer) "Collect information from message in BUFFER. If BUFFER is nil, the current buffer is used. Any message after |