From: "Robin H. Johnson" <robbat2@orbis-terrarum.net>
To: meta@public-inbox.org
Subject: Alternate permalink URLs - for migration from other/custom archive solutions
Date: Sun, 19 Nov 2023 23:47:29 +0000 [thread overview]
Message-ID: <robbat2-20231119T232932-954868624Z@orbis-terrarum.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]
Hi,
This is more of a feature request / request for pointers on how to tweak
the design to support something, and it might be suited to maintaining
as a local patch.
The permalinks offered by public-inbox are great, but at Gentoo Linux,
we'd like to ALSO continue to offer our historical permalinks.
For those, the permalink slug portion was built when the mail arrived
into the archives ingest pipeline.
Example legacy link:
https://archives.gentoo.org/gentoo-dev/message/499b958da430b925dbd2f2b58e0f507e
We'd need to tweak the index somehow to expose it.
That same mail as visible in our public-inbox test site:
https://public-inbox.gentoo.org/gentoo-dev/538ce05eef3f4df3468cbc7f7abfa90eb2ea7d51.camel@gentoo.org/raw
The permalink slug is in the header:
X-Archives-Hash: 499b958da430b925dbd2f2b58e0f507e
This needs to end up in the Xapian index (which doesn't seem to index
headers right now), and then get wired up as a route:
On access, redirect to public-inbox permalink.
Pointers on where in the codebase to wire up the Xapian side greatly
appreciated, since it doesn't seem to be indexing arbitrary headers
right now.
--
Robin Hugh Johnson
Pronouns : They/he
E-Mail : robbat2@orbis-terrarum.net
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1113 bytes --]
next reply other threads:[~2023-11-19 23:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-19 23:47 Robin H. Johnson [this message]
2023-11-20 3:21 ` [RFC] altid: start supporting indexfilter type (was: Alternate permalink URLs) Eric Wong
2023-12-08 21:23 ` Eric Wong
2024-04-27 7:00 ` Eric Wong
2024-07-14 22:51 ` Robin H. Johnson
2024-07-15 21:34 ` Eric Wong
2024-08-13 5:31 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=robbat2-20231119T232932-954868624Z@orbis-terrarum.net \
--to=robbat2@orbis-terrarum.net \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).