diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-06-06 11:26:33 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-06-06 15:10:39 -0400 |
commit | c034eed1b7729556a131705ff323030d227d8370 (patch) | |
tree | 80d66ae6df0aaeecfa5278ef9a26e862f3a44ca0 | |
parent | a12b66552b1f0b988bf3407f8d5a2b0123ecd3ca (diff) | |
download | piem-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.el | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)) |