From 0ce70c3c72211106be19d48edc286a58721a8e03 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 22 Sep 2021 21:23:53 -0400 Subject: Prefer mail-decode-encoded-word-string to rfc2047-decode-string mail-parse.el defines mail-decode-encoded-word-string as an alias for rfc2047-decode-string. Use the higher-level wrapper for the reasons described in (emacs-mime)Interface. Message-Id: <20210923012353.256964-1-kyle@kyleam.com> --- piem-gnus.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'piem-gnus.el') diff --git a/piem-gnus.el b/piem-gnus.el index 3fb8c7d..98e67c9 100644 --- a/piem-gnus.el +++ b/piem-gnus.el @@ -30,9 +30,9 @@ (require 'gnus) (require 'gnus-art) (require 'gnus-sum) +(require 'mail-parse) (require 'message) (require 'piem) -(require 'rfc2047) (defgroup piem-gnus nil "Gnus integration for piem." @@ -109,7 +109,7 @@ message itself if it looks like a patch." (widen) (and (string-match-p piem-patch-subject-re - (rfc2047-decode-string + (mail-decode-encoded-word-string (message-field-value "subject"))) (buffer-substring-no-properties (point-min) (point-max))))))) -- cgit v1.2.3