From 100073936c421d75f408e297e1d69edaef5afe5e Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 19 Sep 2020 00:46:39 -0400 Subject: Unescape message IDs extracted from URLs All downstream code expects unescaped message IDs. Message-Id: <20200919044639.26871-3-kyle@kyleam.com> --- piem-elfeed.el | 2 +- piem-eww.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/piem-elfeed.el b/piem-elfeed.el index 24b3108..add7547 100644 --- a/piem-elfeed.el +++ b/piem-elfeed.el @@ -45,7 +45,7 @@ (inbox-url (piem-inbox-get :url inbox)) (link (elfeed-entry-link elfeed-show-entry))) (and (string-match (piem-message-link-re inbox-url) link) - (match-string 1 link)))) + (url-unhex-string (match-string 1 url))))) ;;;###autoload (define-minor-mode piem-elfeed-mode diff --git a/piem-eww.el b/piem-eww.el index 9fd34ac..849a3b5 100644 --- a/piem-eww.el +++ b/piem-eww.el @@ -44,7 +44,7 @@ (inbox-url (piem-inbox-get :url inbox)) (url (plist-get eww-data :url))) (and (string-match (piem-message-link-re inbox-url) url) - (match-string 1 url)))) + (url-unhex-string (match-string 1 url))))) ;;;###autoload (define-minor-mode piem-eww-mode -- cgit v1.2.3