diff options
author | Kyle Meyer <kyle@kyleam.com> | 2021-09-22 21:23:53 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2021-09-22 22:36:18 -0400 |
commit | 0ce70c3c72211106be19d48edc286a58721a8e03 (patch) | |
tree | f54001b473e7a3125f06a509d2873f095eb65f5a /piem.el | |
parent | c901d3ec025773c8eae04257099fcdfe704085ac (diff) | |
download | piem-0ce70c3c72211106be19d48edc286a58721a8e03.tar.gz |
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>
Diffstat (limited to 'piem.el')
-rw-r--r-- | piem.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,10 +40,10 @@ (require 'browse-url) (require 'cl-lib) (require 'mail-extr) +(require 'mail-parse) (require 'message) (require 'mm-decode) (require 'piem-maildir) -(require 'rfc2047) (require 'subr-x) (require 'transient) (require 'url) @@ -472,7 +472,7 @@ non-nil, make the match specific for that message." (message-narrow-to-head) (mapcar (lambda (header) (when-let ((val (message-fetch-field header))) - (rfc2047-decode-string val))) + (mail-decode-encoded-word-string val))) headers)))) (defun piem-inbox-by-header-match () |