From: "Robin H. Johnson" <robbat2@gentoo.org>
To: meta@public-inbox.org
Subject: publicinbox watch path globbing
Date: Sun, 19 Nov 2023 23:13:12 +0000 [thread overview]
Message-ID: <robbat2-20231119T203948-109104131Z@orbis-terrarum.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1612 bytes --]
Hi!
Writing to see about work in converting Gentoo's (now-broken) other
archives web interface over into using public-inbox instead.
This is the first of a few questions/bumps along the way.
For historical reasons on the scaling side, the archive maildirs are
stored by date:
watch = maildir:$REDACTED/$LISTNAME/.200001/
watch = maildir:$REDACTED/$LISTNAME/.200102/
watch = maildir:$REDACTED/$LISTNAME/.YYYYMM/
watch = maildir:$REDACTED/$LISTNAME/.202311/
etc.
(over time, directories are moved to stable read-only storage)
If a given list is low traffic does NOT get traffic in a given month,
the directory does not exist (it's created when the first mail arrives
during a calendar month).
Multiply this by ~120 lists, and it gets on the large side for a config
file: 7500+ lines just for the "watch" entries.
While I could generate the config file, I'm wondering about better
solution, to allow globbing the path.
I tried to locate a single place in the codebase where this would be
applied, but it's not clear enough to me if there's a single place that
it can easily modified.
If there's a consistent place, I think the cleanest syntax that doesn't
break existing consumers would be something like this:
[publicinbox "$LISTNAME"]
watch = maildirglob:$REDACTED/$LISTNAME/.19????/
watch = maildirglob:$REDACTED/$LISTNAME/.20????/
--
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation President & Treasurer
E-Mail : robbat2@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1113 bytes --]
next reply other threads:[~2023-11-19 23:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-19 23:13 Robin H. Johnson [this message]
2023-11-20 0:10 ` publicinbox watch path globbing Eric Wong
2023-11-20 0:16 ` Robin H. Johnson
2023-11-20 1:20 ` 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: http://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-20231119T203948-109104131Z@orbis-terrarum.net \
--to=robbat2@gentoo.org \
--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).