Date | Commit message (Collapse) |
|
This seems to match more closely with what is expected of Perl
packages based on how blib is used. Hopefully makes the top-level
source tree less cluttered and things easier-to-find.
|
|
This allows multiple instances the WWW app from
running within the same process space
|
|
Relying on Plack::Handler::CGI is much easier for long-term
maintenance and development.
Nowadays, we even include our own httpd implementation to
facilitate easier deployment with PSGI/Plack.
|
|
Hopefully this gives new hackers a better overview of
how the components relate to each other.
|
|
In the future, it should be possible to use this:
git ls-files | UPDATE_COPYRIGHT_HOLDER='all contributors' \
UPDATE_COPYRIGHT_USE_INTERVALS=2 \
xargs /path/to/gnulib/build-aux/update-copyright
|
|
Since cross-posting is inevitable, we shall link to external
message archives for interopability.
|
|
Currently, this looks at other public-inbox configurations
served in the same process. In the future, it will generate
links to other Message-ID lookup endpoints.
|
|
Hopefully this saves us some memory with CoW on *nix.
|
|
We may not support this after all, CGI.pm is already
legacy-enough and far more powerful.
|
|
Some folks may not want to download and install Perl code like
ssoma, so allow downloading an mbox containing the entire
thread.
|
|
This should bring up nearly the entire thread a given
Message-ID is linked to.
|
|
This should allow us to more-easily test with Plack.
|
|
This ought to prevent browsers from misguessing/misdetecting
things.
|
|
These are probably still popular configurations in some
settings, so include sample configurations to get folks
started. These are trickier than an average CGI script
to setup because we rely on pretty URLs from PATH_INFO
and not ugly query parameters.
|
|
Found with mod_perl2 (as it overrides exit).
|
|
We may not have PATH available on some servers (e.g. webrick)
and must rely on the hardcoded system PATH. My installation of
IPC::Run does not seem to work without PATH set in the env,
however normal Perl "open" calls work fine.
|
|
We probably know what we're doing, here...
|
|
This might improve grep-ability slightly and reduce allocations
while we're at it.
|
|
ENV changes do not propagate to child processes under mod_perl
|
|
We use --git-dir=... instead of $ENV{GIT_DIR} because ENV changes
do not propagate easily with mod_perl.
|
|
CGI.pm is on its way out, so do not make it a hard requirement for
Plack users. We still support CGI-only installations because some
sysadmins and distros may be very conservative.
|
|
We should be adding automated tests for this, soon.
|
|
We only generate URI-escaped URLs, so we should not be decoding this
into octets.
|
|
This might be slightly cleaner, though generating the base URL
now has an ugly condition in it.
|
|
We should be able to deal with URIs with non-ASCII characters in
them. I only found this problem when looking at archives with
non-English spam :x
|
|
This needs further testing and refactoring, but seems to work
reasonably well.
|
|
|
|
Hopefully this simplifies and corrects our usage of Perl encoding
APIs.
|
|
|
|
Ugh, at least this has a test...
|
|
While we're at it, make sure strange characters are escaped properly
in Message-IDs. We'll need tests for all this behavior.
|
|
This is not a blog. All posts, whether replies or not,
carry equal weight.
|
|
This shaves off nearly 100ms when my Core2Duo is clocked to 800Mhz
when rendering a full HTML index.
|
|
This allows WWW readers to slowly page through the entire history
of the mailing list.
|
|
This may be easier in some cases for copy+paste, but not 100%
reliable in case the .txt and .html suffixes are in the Message-ID
itself.
|
|
This makes it slightly easier for out-of-the-box curl users since
curl does not report or show the error by default.
|
|
CGI mounts should probably handle this internally. We're reverting
this since it adds too much potential for abuse with fake/extra
prefixes in the URL. We also need to reorder our redirect handling
as a result.
This reverts commit c394de9f2c91c2c5ed1f7832a5a7cc0206120b7f.
|
|
Lightly tested, but this seems to work OK.
|
|
Maybe this increases readability for now.
|
|
It is common to type upper-level URLs without the slash,
redirect users to the correct page for usability.
|
|
MIDs may have strange characters in them, so we need to handle
escaping/unescaping properly to avoid broken links or worse.
|
|
This might make it easier to go to non-CGI things.
|
|
We may have something like /foo.cgi/m/$MID.html in there.
|
|
This makes it easier to configure for systems which
determine a script is a CGI script based on suffix.
|