From: Kyle Meyer <kyle@kyleam.com>
To: piem@inbox.kyleam.com
Subject: [PATCH 1/4] gnus: Prefer mm-handle-media-type over direct access
Date: Sun, 22 Nov 2020 15:46:06 -0500 [thread overview]
Message-ID: <20201122204609.12604-2-kyle@kyleam.com> (raw)
In-Reply-To: <20201122204609.12604-1-kyle@kyleam.com>
---
piem-gnus.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@ (defun piem-gnus-am-ready-mbox ()
(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)
--
2.29.2
next prev parent reply other threads:[~2020-11-22 20:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-22 20:46 [PATCH 0/4] Support text/plain patch attachments Kyle Meyer
2020-11-22 20:46 ` Kyle Meyer [this message]
2020-11-22 20:46 ` [PATCH 2/4] gnus, notmuch: Share "attachment is patch?" logic Kyle Meyer
2020-11-22 20:46 ` [PATCH 3/4] Use when-let in a few more spots Kyle Meyer
2020-11-22 20:46 ` [PATCH 4/4] gnus, notmuch: Consider text/plain patch attachments Kyle Meyer
2020-11-22 21:10 ` Kyle Meyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://git.kyleam.com/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201122204609.12604-2-kyle@kyleam.com \
--to=kyle@kyleam.com \
--cc=piem@inbox.kyleam.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.kyleam.com/piem/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).