]> Sergey Matveev's repositories - public-inbox.git/log
public-inbox.git
10 years agoexamples: make web configs consistent and add README
Eric Wong [Wed, 30 Apr 2014 22:04:44 +0000 (22:04 +0000)]
examples: make web configs consistent and add README

Hopefully this is enough to get some folks started.

10 years agocgi: set charset in responses
Eric Wong [Wed, 30 Apr 2014 21:39:24 +0000 (21:39 +0000)]
cgi: set charset in responses

This ought to prevent browsers from misguessing/misdetecting
things.

10 years agoadd example configs for Apache2 mod_perl and CGI
Eric Wong [Wed, 30 Apr 2014 20:24:54 +0000 (20:24 +0000)]
add example configs for Apache2 mod_perl and CGI

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.

10 years ago"git cat-file --batch" wrapper really mod_perl-compatible
Eric Wong [Wed, 30 Apr 2014 20:13:54 +0000 (20:13 +0000)]
"git cat-file --batch" wrapper really mod_perl-compatible

IPC::Open* does not work well under mod_perl (probably because
it does funky things with stdout/stderr).  So use the POSIX
dup2 functions instead, which work reliably on all POSIX-like
platforms.

10 years agocgi: avoid warning after exec
Eric Wong [Wed, 30 Apr 2014 19:17:21 +0000 (19:17 +0000)]
cgi: avoid warning after exec

Found with mod_perl2 (as it overrides exit).

10 years agocgi: remove dependency on IPC::Run in CGI
Eric Wong [Wed, 30 Apr 2014 01:03:30 +0000 (01:03 +0000)]
cgi: remove dependency on IPC::Run in CGI

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.

10 years agoconfig: avoid double-slash in expand_path output
Eric Wong [Wed, 30 Apr 2014 01:02:53 +0000 (01:02 +0000)]
config: avoid double-slash in expand_path output

It looks ugly in error messages to have redundant slashes.

10 years agocgi: disable warnings for CGI::NOSTICKY
Eric Wong [Wed, 30 Apr 2014 00:19:48 +0000 (00:19 +0000)]
cgi: disable warnings for CGI::NOSTICKY

We probably know what we're doing, here...

10 years agofavor "--git-dir=..." over "--git-dir ..."
Eric Wong [Wed, 30 Apr 2014 00:16:55 +0000 (00:16 +0000)]
favor "--git-dir=..." over "--git-dir ..."

This might improve grep-ability slightly and reduce allocations
while we're at it.

10 years agofeed: unset GIT_DIR and use "git --git-dir=.. log"
Eric Wong [Wed, 30 Apr 2014 00:14:35 +0000 (00:14 +0000)]
feed: unset GIT_DIR and use "git --git-dir=.. log"

This should elimate all of our %ENV dependencies in the WWW portion
of our code.

10 years agocgi: mid2blob does not depend on $ENV{GIT_DIR}
Eric Wong [Tue, 29 Apr 2014 05:33:45 +0000 (05:33 +0000)]
cgi: mid2blob does not depend on $ENV{GIT_DIR}

ENV changes do not propagate to child processes under mod_perl

10 years agoimplement our own cat-file --batch wrapper
Eric Wong [Tue, 29 Apr 2014 05:10:48 +0000 (05:10 +0000)]
implement our own cat-file --batch wrapper

We use --git-dir=... instead of $ENV{GIT_DIR} because ENV changes
do not propagate easily with mod_perl.

10 years agoconfig: use "git config --file" to avoid changing %ENV
Eric Wong [Tue, 29 Apr 2014 03:43:20 +0000 (03:43 +0000)]
config: use "git config --file" to avoid changing %ENV

%ENV changes do not propagate by default under a mod_perl2
environment, and we might as well work towards being thread-safe.

10 years agocgi: make CGI optional for Plack users
Eric Wong [Mon, 28 Apr 2014 22:09:30 +0000 (22:09 +0000)]
cgi: make CGI optional for Plack users

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.

10 years agocgi: wrap self_uri calls for Plack::Request
Eric Wong [Mon, 28 Apr 2014 21:46:44 +0000 (21:46 +0000)]
cgi: wrap self_uri calls for Plack::Request

We should be adding automated tests for this, soon.

10 years agofeed: call URI->as_string explicitly
Eric Wong [Mon, 28 Apr 2014 21:46:04 +0000 (21:46 +0000)]
feed: call URI->as_string explicitly

Implicit string conversion is more confusing.

10 years agouse relative URLs in HTML index
Eric Wong [Mon, 28 Apr 2014 21:02:41 +0000 (21:02 +0000)]
use relative URLs in HTML index

Browsers know how to follow relative URLs, so we may generate
smaller HTML pages.

10 years agocgi: do not decode path_info
Eric Wong [Mon, 28 Apr 2014 20:47:33 +0000 (20:47 +0000)]
cgi: do not decode path_info

We only generate URI-escaped URLs, so we should not be decoding this
into octets.

10 years agofeed: swap order of "next" and "head" links
Eric Wong [Mon, 28 Apr 2014 20:45:42 +0000 (20:45 +0000)]
feed: swap order of "next" and "head" links

This is one less key stroke for somebody paging through the
list history.

10 years agofeed: avoid redirect on permalink
Eric Wong [Mon, 28 Apr 2014 20:04:44 +0000 (20:04 +0000)]
feed: avoid redirect on permalink

This saves one round-trip request response so reduces latency over
slow links.  The redirect only exists for convenience and isn't 100%
reliable in case the Message-ID terminates with a .(html|txt)
suffix.

10 years agofeed: dead code elimination around dropped endpoints
Eric Wong [Mon, 28 Apr 2014 10:55:59 +0000 (10:55 +0000)]
feed: dead code elimination around dropped endpoints

public-inbox is for discussion, so top-level posts do not get
special treatment.

10 years agomda: support aliased addresses
Eric Wong [Mon, 28 Apr 2014 10:25:58 +0000 (10:25 +0000)]
mda: support aliased addresses

This mimics functionality found in -learn.  Originally the design
allowed for only one address per-list, but when migrating/hijacking
existing mailing lists, having multiple addresses map to the same
inbox is useful.

10 years agofeed: disable navigation to previous page
Eric Wong [Mon, 28 Apr 2014 07:39:41 +0000 (07:39 +0000)]
feed: disable navigation to previous page

This is unfortunately needed for scalability to long histories.
The design of git requires it to traverse full history to walk
forward in time, since commits can only record past history.

Instead, replace "prev" with a "head" link to zip us back to
the most recent page.  Users who wish to go backwards can use
browser history, which should always work on our old-fashioned
HTML pages.

10 years agofeed: pedantically quote HTML attributes
Eric Wong [Mon, 28 Apr 2014 03:27:21 +0000 (03:27 +0000)]
feed: pedantically quote HTML attributes

This is more correct, although it costs us 4 bytes.

10 years agoallow running as a Plack app without CGI emulation
Eric Wong [Mon, 28 Apr 2014 04:56:47 +0000 (04:56 +0000)]
allow running as a Plack app without CGI emulation

This might be slightly cleaner, though generating the base URL
now has an ugly condition in it.

10 years agouri_escape => uri_escape_utf8
Eric Wong [Mon, 28 Apr 2014 04:50:17 +0000 (04:50 +0000)]
uri_escape => uri_escape_utf8

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

10 years agocgi: preliminary Plack compatibility
Eric Wong [Mon, 28 Apr 2014 02:15:04 +0000 (02:15 +0000)]
cgi: preliminary Plack compatibility

This needs further testing and refactoring, but seems to work
reasonably well.

10 years agofeeds use XHTML to avoid tag soup
Eric Wong [Sun, 27 Apr 2014 06:21:57 +0000 (06:21 +0000)]
feeds use XHTML to avoid tag soup

This should work in most browsers, lets find out!

10 years agoFeed: <id> element must be a URI, oops :x
Eric Wong [Sun, 27 Apr 2014 05:04:02 +0000 (05:04 +0000)]
Feed: <id> element must be a URI, oops :x

For each feed element, we'll just use the link since there's
currently no suitable URN.

10 years agoview: uri_escape subject
Eric Wong [Sun, 27 Apr 2014 01:56:39 +0000 (01:56 +0000)]
view: uri_escape subject

This hopefully improves compatibility with mailers

10 years agofeed: comment about the %deleted hash
Eric Wong [Sat, 26 Apr 2014 22:22:35 +0000 (22:22 +0000)]
feed: comment about the %deleted hash

It's strictly not necessary anymore since
commit fa6168c56bdd1cece178b6b852a9b2cba6ce6ffb
("feed: message must exist in current HEAD to show up")

However it can still save us some unnecessary syscalls and
round-trips to the "git cat-file --batch" process, so it's probably
worth th cost of stuffing it in a hash.

10 years agocgi: style: return undef => return
Eric Wong [Sat, 26 Apr 2014 21:32:52 +0000 (21:32 +0000)]
cgi: style: return undef => return

10 years agofeed: message must exist in current HEAD to show up
Eric Wong [Sat, 26 Apr 2014 09:07:42 +0000 (09:07 +0000)]
feed: message must exist in current HEAD to show up

We do not want recently-deleted spam showing up when looking
in old histories.

10 years agospamassassin rule and config updates
Eric Wong [Sat, 26 Apr 2014 07:42:25 +0000 (07:42 +0000)]
spamassassin rule and config updates

While we're at it, add a script for easy editing of user prefs.
We need some human-maintained rules based on the spam we get.
It's an imperfect world, but I'd _much_ rather deal with the
occassional spam than require signup/registration to post.

10 years agoview: show References: header, too
Eric Wong [Sat, 26 Apr 2014 02:52:50 +0000 (02:52 +0000)]
view: show References: header, too

Some mail user agents use this header, and Mail::Thread uses
it, too, so show it if possible, but only if it's not redundant
to In-Reply-To.

10 years agoview: add per-message HTML footer to encourage replies
Eric Wong [Sat, 26 Apr 2014 02:29:22 +0000 (02:29 +0000)]
view: add per-message HTML footer to encourage replies

This may not work with most mail user agents, however.

10 years agohuge refactor of encoding handling
Eric Wong [Sat, 26 Apr 2014 01:01:10 +0000 (01:01 +0000)]
huge refactor of encoding handling

Hopefully this simplifies and corrects our usage of Perl encoding
APIs.

10 years agocgi: eliminate dead/redundant HTML escaping code
Eric Wong [Fri, 25 Apr 2014 07:49:14 +0000 (07:49 +0000)]
cgi: eliminate dead/redundant HTML escaping code

10 years agohtml: refactor header value handling to be OO
Eric Wong [Thu, 24 Apr 2014 00:21:21 +0000 (00:21 +0000)]
html: refactor header value handling to be OO

This helps us keep track of escaping which needs to be done
for various levels.

10 years agot/feed: cleanup test and add test for /f/ link
Eric Wong [Wed, 23 Apr 2014 10:50:08 +0000 (10:50 +0000)]
t/feed: cleanup test and add test for /f/ link

We already depend on IPC::Run, so just use it our tests.

10 years agofeed: add tests for <id> element setting
Eric Wong [Wed, 23 Apr 2014 01:05:56 +0000 (01:05 +0000)]
feed: add tests for <id> element setting

We need to ensure this works

This follows commit bd8fd095067b79a0d2a40bbca2b27b923d02b3f8
("feed: fix address when multiple addresses exist")

10 years agot/feed: notify user of missing XML::Feed
Eric Wong [Mon, 21 Apr 2014 20:39:54 +0000 (20:39 +0000)]
t/feed: notify user of missing XML::Feed

One of my dev machines did not have XML::Feed so things were
not tested sufficiently.

10 years agoview: fix link to raw message from /f/ endpoint
Eric Wong [Tue, 22 Apr 2014 09:48:53 +0000 (09:48 +0000)]
view: fix link to raw message from /f/ endpoint

Ugh, at least this has a test...

10 years agofix quoted URL generation in feeds
Eric Wong [Tue, 22 Apr 2014 09:24:45 +0000 (09:24 +0000)]
fix quoted URL generation in feeds

While we're at it, make sure strange characters are escaped properly
in Message-IDs.  We'll need tests for all this behavior.

10 years agoview: do not decode Message-ID
Eric Wong [Tue, 22 Apr 2014 09:22:30 +0000 (09:22 +0000)]
view: do not decode Message-ID

This is ridiculous, nobody (including ssoma) ever does this.

10 years agofeed: fix address when multiple addresses exist
Eric Wong [Mon, 21 Apr 2014 19:29:32 +0000 (19:29 +0000)]
feed: fix address when multiple addresses exist

This needs to be cleaned up

10 years agoREADME: add links to try and HTML archives
Eric Wong [Mon, 21 Apr 2014 18:33:22 +0000 (18:33 +0000)]
README: add links to try and HTML archives

10 years agoconfig: use description file for gitweb
Eric Wong [Mon, 21 Apr 2014 10:43:59 +0000 (10:43 +0000)]
config: use description file for gitweb

Do not repeat ourselves, just use the same description file
gitweb uses to avoid surprising users.

10 years agohtml/index: fix broken prev/next pagination on short histories
Eric Wong [Mon, 21 Apr 2014 10:10:14 +0000 (10:10 +0000)]
html/index: fix broken prev/next pagination on short histories

We do not have much history in public-inbox meta, so do
not mislead users with strange navigation elements which
lead nowhere.

10 years agofeed: there is only one atom feed, with all messages
Eric Wong [Mon, 21 Apr 2014 10:00:21 +0000 (10:00 +0000)]
feed: there is only one atom feed, with all messages

This is not a blog.  All posts, whether replies or not,
carry equal weight.

10 years agohtml/index: do not waste space with non-existent thread roots
Eric Wong [Mon, 21 Apr 2014 09:53:53 +0000 (09:53 +0000)]
html/index: do not waste space with non-existent thread roots

Screen real-estate is valuable, and missing roots tend to
be false-positive matches (using Subject, not In-Reply-To
or References).

10 years agodoc: update design_www and add HACKING file
Eric Wong [Mon, 21 Apr 2014 09:19:13 +0000 (09:19 +0000)]
doc: update design_www and add HACKING file

Document some of the stranger choices I've made.

10 years agonew scripts for importing slrn spools and maildirs
Eric Wong [Mon, 21 Apr 2014 08:07:53 +0000 (08:07 +0000)]
new scripts for importing slrn spools and maildirs

The old import_gmane_spool script was inflexible,
since we may import from maildir archives as well, so
get everything into maildir, first.

10 years agoREADME: fix URL for source code clone
Eric Wong [Mon, 21 Apr 2014 01:45:24 +0000 (01:45 +0000)]
README: fix URL for source code clone

This is an 80x24.org project (more on that at another date).

10 years agoscripts/dc-dlvr: allow exiting from ~/.dc-dlvr.pre
Eric Wong [Mon, 21 Apr 2014 00:18:33 +0000 (00:18 +0000)]
scripts/dc-dlvr: allow exiting from ~/.dc-dlvr.pre

The ~/.dc-dlvr.pre script for my public-inbox user does this.

10 years agouse ORIGINAL_RECIPIENT once again
Eric Wong [Sun, 20 Apr 2014 23:27:46 +0000 (23:27 +0000)]
use ORIGINAL_RECIPIENT once again

It should be common for a single users to be subscribed to multiple
addresses/lists, so we must use the address before alias expansion.

This partially reverts commit b949afc9edf89dd494cac6255c78b124d58e11a5

10 years agoscripts/import_gmane_spool: set git committer date
Eric Wong [Sun, 20 Apr 2014 20:40:55 +0000 (20:40 +0000)]
scripts/import_gmane_spool: set git committer date

We normally want committer date to be different so we may
track delivery latencies (which do not differ much).
However, the rules for importing are much different and
tend to screw things up when using time ranges with git-rev-list.

10 years agovarious documentation cleanups
Eric Wong [Sun, 20 Apr 2014 20:35:51 +0000 (20:35 +0000)]
various documentation cleanups

10 years agofeed: close string ref before returning
Eric Wong [Sun, 20 Apr 2014 19:31:23 +0000 (19:31 +0000)]
feed: close string ref before returning

Just in case there is an error, this should be more explicit.

10 years agocgi: delay some requires
Eric Wong [Sun, 20 Apr 2014 11:17:16 +0000 (11:17 +0000)]
cgi: delay some requires

This shaves off nearly 100ms when my Core2Duo is clocked to 800Mhz
when rendering a full HTML index.

10 years agofeed: speed up blob checks if Git.pm is usable
Eric Wong [Sun, 20 Apr 2014 11:00:06 +0000 (11:00 +0000)]
feed: speed up blob checks if Git.pm is usable

Git::cat_blob is a handy interface to read multiple emails
without incurring fork + exec overhead.  Git.pm is GPLv2+,
not GPLv2-only, so we may link to it.

10 years agomda: share commit setup code with -learn
Eric Wong [Sat, 19 Apr 2014 23:23:10 +0000 (23:23 +0000)]
mda: share commit setup code with -learn

We need -learn to do many of the same things as -mda
when we have a false-positive.  We also need -learn to
do HTML filtering in case the training user screws up.

10 years agomove precheck to MDA namespace
Eric Wong [Sat, 19 Apr 2014 23:11:00 +0000 (23:11 +0000)]
move precheck to MDA namespace

We will be combining common code between -learn and -mda

10 years agovarious documentation updates
Eric Wong [Sat, 19 Apr 2014 19:19:06 +0000 (19:19 +0000)]
various documentation updates

We have an HTML homepage, OMG!

10 years agomda: rename PI_FAILBOX to PI_EMERGENCY
Eric Wong [Fri, 18 Apr 2014 22:18:17 +0000 (22:18 +0000)]
mda: rename PI_FAILBOX to PI_EMERGENCY

The emergency destination may be Maildir.  A Maildir emergency
destination is better for volatile data which is written to
and deleted-from frequently.

10 years agocgi: index pages allow iterating some pagination
Eric Wong [Sat, 19 Apr 2014 10:37:28 +0000 (10:37 +0000)]
cgi: index pages allow iterating some pagination

This allows WWW readers to slowly page through the entire history
of the mailing list.

10 years agoview: fix regression in standalone /^&gt;$/ lines
Eric Wong [Fri, 18 Apr 2014 22:43:59 +0000 (22:43 +0000)]
view: fix regression in standalone /^&gt;$/ lines

The lack of trailing whitespace in quote prefixes threw us
off and cause t/view to fail.

This failure was caused by
commit fefea3d7d2484ffbf433aec0dd80026aa7120e07
("ensure per-message short quotes do not get too long")
and not caught before pushing because I failed to run
"make", only "prove" (and not even "prove -l" :x).

10 years agoensure per-message short quotes do not get too long
Eric Wong [Thu, 17 Apr 2014 22:41:57 +0000 (22:41 +0000)]
ensure per-message short quotes do not get too long

Sometimes a single long word or URL can lengthen the line
too much.

10 years agocgi: sort HTML index by most recent date
Eric Wong [Thu, 17 Apr 2014 22:23:01 +0000 (22:23 +0000)]
cgi: sort HTML index by most recent date

This is hopefully the most user-friendly method.

10 years agoview: remove pointless self-linkage
Eric Wong [Thu, 17 Apr 2014 22:08:31 +0000 (22:08 +0000)]
view: remove pointless self-linkage

It is pointless to link to ourselves.

10 years agoview: fix title of HTML views
Eric Wong [Thu, 17 Apr 2014 22:05:04 +0000 (22:05 +0000)]
view: fix title of HTML views

We need to take care to escape everything properly to avoid
HTML/JS injections.

10 years agoadd example for CGI with Ruby WEBrick
Eric Wong [Thu, 17 Apr 2014 21:56:12 +0000 (21:56 +0000)]
add example for CGI with Ruby WEBrick

Some people like old-fashioned Ruby and WEBrick is in the Ruby
standard library, so widely available.

10 years agoview: inline shorter quotes
Eric Wong [Thu, 17 Apr 2014 21:49:52 +0000 (21:49 +0000)]
view: inline shorter quotes

Breaking up short quote messages at 1 line is too disconcerting,
try 5 lines as proper quotes shouldn't be too long.

10 years agocgi: implement suffix-less Message-ID redirects
Eric Wong [Thu, 17 Apr 2014 21:31:06 +0000 (21:31 +0000)]
cgi: implement suffix-less Message-ID redirects

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.

10 years agocgi: include HTTP status in error message body
Eric Wong [Thu, 17 Apr 2014 21:30:21 +0000 (21:30 +0000)]
cgi: include HTTP status in error message body

This makes it slightly easier for out-of-the-box curl users since
curl does not report or show the error by default.

10 years agoHTML: various encoding fixups
Eric Wong [Thu, 17 Apr 2014 20:10:38 +0000 (20:10 +0000)]
HTML: various encoding fixups

10 years agoFeed: add bug note on memory cycle
Eric Wong [Thu, 17 Apr 2014 03:19:49 +0000 (03:19 +0000)]
Feed: add bug note on memory cycle

This affects users of long-lived processes (FastCGI/Plack)

10 years agoRevert "cgi: relax path restriction for top-level"
Eric Wong [Tue, 15 Apr 2014 07:10:17 +0000 (07:10 +0000)]
Revert "cgi: relax path restriction for top-level"

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.

10 years agocgi: correct links to folded quotes
Eric Wong [Tue, 15 Apr 2014 07:06:45 +0000 (07:06 +0000)]
cgi: correct links to folded quotes

Lightly tested, but this seems to work OK.

10 years agoview: finish HTML in per-message pages
Eric Wong [Tue, 15 Apr 2014 06:52:07 +0000 (06:52 +0000)]
view: finish HTML in per-message pages

10 years agocgi: support /all.html page with inline threads
Eric Wong [Tue, 15 Apr 2014 06:51:41 +0000 (06:51 +0000)]
cgi: support /all.html page with inline threads

Maybe this increases readability for now.

10 years agoHTML: use shorter URLs in indices
Eric Wong [Tue, 15 Apr 2014 06:35:52 +0000 (06:35 +0000)]
HTML: use shorter URLs in indices

Long URLs are not needed for HTML pages, but may be for feeds since
they're often resyndicated and not consumed by the browser.

10 years agoHTML: ensure hrefs are quoted properly
Eric Wong [Tue, 15 Apr 2014 06:18:43 +0000 (06:18 +0000)]
HTML: ensure hrefs are quoted properly

We may be breaking some parsers or allowing more breakage
to slip through without quotes.  We waste some bytes, though.

10 years agomda: encoding-aware From: for GIT_ authorship
Eric Wong [Tue, 15 Apr 2014 06:00:16 +0000 (06:00 +0000)]
mda: encoding-aware From: for GIT_ authorship

Users with non-US-ASCII compatible names were not showing
up properly in "git log" output.

10 years agoscripts/import_gmane_spool: preserve delivery order
Eric Wong [Tue, 15 Apr 2014 05:51:34 +0000 (05:51 +0000)]
scripts/import_gmane_spool: preserve delivery order

Unfortunately, this means we get rid of parallelization,
as we need to preserve delivery order so HTML indices look
chronological.  Order may also affect spam filtering and
training, too.

10 years agodoc: add notes on scalability
Eric Wong [Tue, 15 Apr 2014 02:38:07 +0000 (02:38 +0000)]
doc: add notes on scalability

Fortunately, most mailing lists will never grow too large.

10 years agodoc: fold philosophy into the README
Eric Wong [Mon, 14 Apr 2014 08:20:42 +0000 (08:20 +0000)]
doc: fold philosophy into the README

Hopefully this makes the scope and intent of the project clearer.

10 years agorename list from "bugs" to "meta"
Eric Wong [Sat, 12 Apr 2014 23:14:54 +0000 (23:14 +0000)]
rename list from "bugs" to "meta"

"bugs" might confuse and limit the discussion, so "meta" it is!

10 years agomda: add most RFC 2919 and 2369 headers
Eric Wong [Sat, 12 Apr 2014 10:01:01 +0000 (10:01 +0000)]
mda: add most RFC 2919 and 2369 headers

These probably make sense even though we do not handle
delivery ourselves.  It can aid in searching/filtering/tagging
of messages.

10 years agoderive -primary_address in config
Eric Wong [Sat, 12 Apr 2014 09:59:41 +0000 (09:59 +0000)]
derive -primary_address in config

This may be useful for generating List-Id headers and HTML pages.

10 years agocgi: fix up top-level index
Eric Wong [Mon, 14 Apr 2014 07:58:50 +0000 (07:58 +0000)]
cgi: fix up top-level index

We do not have all messages in the top-level index
(and we need to adjust the test while we're at it).

10 years agocgi: 301 for list-indices without trailing slash
Eric Wong [Mon, 14 Apr 2014 07:53:53 +0000 (07:53 +0000)]
cgi: 301 for list-indices without trailing slash

It is common to type upper-level URLs without the slash,
redirect users to the correct page for usability.

10 years agot/cgi: cleanup: no need for additional block
Eric Wong [Mon, 14 Apr 2014 06:59:04 +0000 (06:59 +0000)]
t/cgi: cleanup: no need for additional block

Not sure what I was thinking...

10 years agocgi: ensure we unescape MIDs correctly in URLs
Eric Wong [Sat, 12 Apr 2014 01:06:58 +0000 (01:06 +0000)]
cgi: ensure we unescape MIDs correctly in URLs

MIDs may have strange characters in them, so we need to handle
escaping/unescaping properly to avoid broken links or worse.

10 years agocgi: avoid parsing ENV directly for PATH_INFO
Eric Wong [Sat, 12 Apr 2014 00:52:40 +0000 (00:52 +0000)]
cgi: avoid parsing ENV directly for PATH_INFO

This might make it easier to go to non-CGI things.

10 years agocgi: relax path restriction for top-level
Eric Wong [Sat, 12 Apr 2014 00:49:34 +0000 (00:49 +0000)]
cgi: relax path restriction for top-level

We may have something like /foo.cgi/m/$MID.html in there.

10 years agocgi: rename to have .cgi suffix
Eric Wong [Sat, 12 Apr 2014 00:09:30 +0000 (00:09 +0000)]
cgi: rename to have .cgi suffix

This makes it easier to configure for systems which
determine a script is a CGI script based on suffix.

10 years agoscripts/import_gmane_spool: misc updates
Eric Wong [Fri, 11 Apr 2014 23:21:51 +0000 (23:21 +0000)]
scripts/import_gmane_spool: misc updates

We may promote this to be a real script, since public-inbox-mda
is idempotent.

10 years agoview: trim_message_id consistently
Eric Wong [Fri, 11 Apr 2014 22:23:27 +0000 (22:23 +0000)]
view: trim_message_id consistently

Message-IDs could have embedded '<' and '>'

10 years agoconfig: support multiple addresses for a inbox
Eric Wong [Fri, 11 Apr 2014 21:08:50 +0000 (21:08 +0000)]
config: support multiple addresses for a inbox

This makes it possible to gradually migrate to new address in case
of list name changes, and is one step closer to operating in
"stealth hijack mode" :)