aboutsummaryrefslogtreecommitdiff
path: root/piem-b4.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2023-06-03 00:11:00 -0400
committerKyle Meyer <kyle@kyleam.com>2023-06-05 21:39:15 -0400
commitadb5b4a858c0f72fc807a4a94417361d0ba14f92 (patch)
tree3eae764ea0b777e1dbcdf5affaeef1afa3915924 /piem-b4.el
parent880413af62393d932ca8838d3023399064d72013 (diff)
downloadpiem-adb5b4a858c0f72fc807a4a94417361d0ba14f92.tar.gz
piem-inboxes: Allow :url values without a trailing slash
The piem-inboxes documentation says that the :url value must end in a slash, which is confusing because 1) public-inbox does not require this and has examples in its docs without a slash and 2) some spots in piem already append a slash if needed. Add a piem-inbox-get wrapper that ensures the returned URL ends with a slash, and use it in all spots that retrieve an inbox's URL. Reported-by: Jelle Licht <jlicht@fsfe.org> Link: https://inbox.kyleam.com/piem/87y1l9ualg.fsf@fsfe.org Message-ID: <20230603041100.200632-1-kyle@kyleam.com>
Diffstat (limited to 'piem-b4.el')
-rw-r--r--piem-b4.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/piem-b4.el b/piem-b4.el
index cd19ebb..8a381c6 100644
--- a/piem-b4.el
+++ b/piem-b4.el
@@ -73,7 +73,7 @@ This is intended to be used for debugging purposes.")
;; b4's configuration.
(unless local-mbox-p
(when-let ((url (and (equal mid (piem-mid))
- (piem-inbox-get :url))))
+ (piem-inbox-url))))
(ignore-errors
(piem-with-url-contents
(concat url (piem-escape-mid mid) "/t.mbox.gz")