aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-06-06 11:26:33 -0400
committerKyle Meyer <kyle@kyleam.com>2020-06-06 15:10:39 -0400
commitc034eed1b7729556a131705ff323030d227d8370 (patch)
tree80d66ae6df0aaeecfa5278ef9a26e862f3a44ca0
parenta12b66552b1f0b988bf3407f8d5a2b0123ecd3ca (diff)
downloadpiem-c034eed1b7729556a131705ff323030d227d8370.tar.gz
piem-extract-mbox-info: Process "From:" with rfc2047-decode-string
With encoded values, piem-name-branch-who-what-v of course comes up with an unhelpful suggestion derived from the charset rather than the sender's name.
-rw-r--r--piem.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/piem.el b/piem.el
index 0521a4e..7932347 100644
--- a/piem.el
+++ b/piem.el
@@ -27,6 +27,7 @@
;;; Code:
(require 'message)
+(provide 'rfc2047)
(require 'subr-x)
@@ -251,7 +252,8 @@ the first will be ignored."
(save-restriction
(message-narrow-to-head)
(list :date (message-fetch-field "date")
- :from (message-fetch-field "from")
+ :from (rfc2047-decode-string
+ (message-fetch-field "from"))
:subject (message-fetch-field "subject"))))))
(when (re-search-forward (rx line-start "base-commit: "
(group (>= 40 hex-digit))