From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id WP4QOTuNZV80cwAAsNZ9tg (envelope-from ) for ; Sat, 19 Sep 2020 04:46:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WJ3QNDuNZV9cdwAA1q6Kng (envelope-from ) for ; Sat, 19 Sep 2020 04:46:51 +0000 Received: from pb-smtp1.pobox.com (pb-smtp1.pobox.com [64.147.108.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DE5D1940390 for ; Sat, 19 Sep 2020 04:46:50 +0000 (UTC) Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 857FF6C887; Sat, 19 Sep 2020 00:46:49 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=BHfo2nbY2S9PMu6336L2w5Py+ EA=; b=Z83HLootnHqMig+4ViaIMajwaFksd4eoEU8z3IpHrWnqmCly32Cf1lpKW GCr5C/0QJYTXssRM1/xOYjRqismzO4C3AOEAhu9X2B8ud4AfGKRh/8gtWj+5qlBt /p5YtC8Sw8V18HZuMx21ii+wV2B+W5LEEV5JmRQyzShZw6lZ1c= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 7E90C6C885; Sat, 19 Sep 2020 00:46:49 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=mesmtp; bh=KixKEL7WAvdZmhfSqst8JyP6oBFC4pT//4J14ou9yEU=; b=2TNyomp2oaaURtarz/ckYUy046SfzRtPfSWWT/Cl0vu1W+VrHAQMy/RHPerhbJekliyRw0XPwwHlav0t32xes6YO9J2BdYX+vg8LS3Tvi0s1RHAs31+hViSnyb6uNlsKDR54sByVuhAQsgSgYGQkXbV8VZq7QJs2sHFfbR36bL8= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 041406C884; Sat, 19 Sep 2020 00:46:49 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH 2/2] Unescape message IDs extracted from URLs Date: Sat, 19 Sep 2020 00:46:39 -0400 Message-Id: <20200919044639.26871-3-kyle@kyleam.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200919044639.26871-1-kyle@kyleam.com> References: <20200919044639.26871-1-kyle@kyleam.com> MIME-Version: 1.0 X-Pobox-Relay-ID: 20E3F348-FA33-11EA-B680-01D9BED8090B-24757444!pb-smtp1.pobox.com Content-Transfer-Encoding: quoted-printable X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=Z83HLoot; dkim=fail (body hash did not verify) header.d=kyleam.com header.s=mesmtp header.b=2TNyomp2; dmarc=none; spf=pass (aspmx1.migadu.com: domain of kyle@kyleam.com designates 64.147.108.70 as permitted sender) smtp.mailfrom=kyle@kyleam.com X-Spam-Score: 2.50 X-TUID: tgJgHZgMTrII All downstream code expects unescaped message IDs. --- 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 @@ (defun piem-elfeed-get-mid () (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))))) =20 ;;;###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 @@ (defun piem-eww-get-mid () (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))))) =20 ;;;###autoload (define-minor-mode piem-eww-mode --=20 2.28.0