Eric Wong [Sat, 5 Mar 2016 07:35:22 +0000 (07:35 +0000)]
t/httpd-corner: avoid clobbering existing FDs after fork
Due to the deterministic way reference counting works,
we do not want to drop references to existing FDs
even if we no longer need the glob reference; the actual
FD is all we can pass through on exec.
Eric Wong [Sat, 5 Mar 2016 07:08:12 +0000 (07:08 +0000)]
doc: language-neutral client-side endpoints
Be less specific, client-side code can be written in any
language (and I do not care for JS runtimes implemented in
C++ :P).
Eric Wong [Sat, 5 Mar 2016 07:00:41 +0000 (07:00 +0000)]
doc: varyus speling fickses
Letz trie 2 uphear liter8
Eric Wong [Sat, 5 Mar 2016 06:45:41 +0000 (06:45 +0000)]
feed: remove unnecessary encoding lookup
We handle encoding-related things elsewhere.
Eric Wong [Sat, 5 Mar 2016 06:00:59 +0000 (06:00 +0000)]
daemon: simplify parent death handling
No need to create a new sub which kill ourselves $$ when we can
invoke worker_quit directly.
Eric Wong [Sat, 5 Mar 2016 05:52:14 +0000 (05:52 +0000)]
daemon: avoid cyclic references for once-used callbacks
Not that these subs are repeatedly created, but this makes
the code easier-to-review and these callbacks are idempotent
anyways.
Eric Wong [Sat, 5 Mar 2016 05:44:16 +0000 (05:44 +0000)]
daemon: drop listener sockets ASAP on termination
We do not want to be accepting connections during graceful
shutdown because another new process is likely taking over.
This also allows us to free up the listener case another
(independent) process wants to claim it.
Eric Wong [Sat, 5 Mar 2016 05:41:12 +0000 (05:41 +0000)]
t/httpd-corner: additional callback test
Just to ensure we hit the code path independently of
WWW code.
Eric Wong [Sat, 5 Mar 2016 00:24:16 +0000 (00:24 +0000)]
git-http-backend: favor sysread for regular files
We do not need line buffering, here; so favor sysread to
bypass extra copies which may be done by normal read.
Eric Wong [Fri, 4 Mar 2016 01:00:26 +0000 (01:00 +0000)]
daemon: simplify socket inheriting, slightly
IO::Handle->new_from_fd has existed since at least 1996,
so it should be safe to depend on at this point.
Eric Wong [Thu, 3 Mar 2016 10:33:02 +0000 (10:33 +0000)]
daemon: support listening on Unix domain sockets
Listening on Unix domain sockets can be convenient for running
behind reverse proxies, avoiding port conflicts, limiting access,
or avoiding the overhead (if any) of TCP over loopback.
Eric Wong [Thu, 3 Mar 2016 05:14:31 +0000 (05:14 +0000)]
daemon: introduce host_with_port for identifying sockets
This allows us to share more code between daemons and avoids
having to make additional syscalls for preparing REMOTE_HOST
and REMOTE_PORT in the PSGI env in -httpd.
This will also make supporting HTTP (and NNTP) over Unix sockets
easier in a future commit.
Eric Wong [Thu, 3 Mar 2016 05:14:30 +0000 (05:14 +0000)]
daemon: avoid polluting the main package
We've distilled the daemon code into one public function ("run"),
so avoid polluting the main namespace and just have users
prefix with the full package name for this rarely-used class.
Eric Wong [Thu, 3 Mar 2016 09:07:40 +0000 (09:07 +0000)]
t/*.t: use identifiable tempdir names
This should make identifiying leftover directories
due to SIGKILL-ed tests easier.
Eric Wong [Thu, 3 Mar 2016 07:35:34 +0000 (07:35 +0000)]
view: fix stupid typo in inline_dump
Ugh, this enabled-iff-xapian-is-available code really
needs better testing...
Eric Wong [Thu, 3 Mar 2016 03:16:58 +0000 (03:16 +0000)]
use raw header for Message-ID
Message-IDs should not be MIME encoded, but in case they are,
use the raw form for compatibility with ssoma and possibly
other tools. This prevents a potential problem where a
malicious client could confuse our storage layer into indexing
incorrect contents.
Eric Wong [Tue, 1 Mar 2016 08:19:12 +0000 (08:19 +0000)]
http: better error handling for EMFILE/ENFILE
Better to throw the error back to the client ASAP if we're
out-of-descriptors. We will need to implement idle client
expiration for long-lived HTTP connections.
Eric Wong [Tue, 1 Mar 2016 07:52:49 +0000 (07:52 +0000)]
httpd: remove unneeded err and out fields from class
Vestigial pieces from the nntpd code which aren't needed because
the psgi env already has the "psgi.errors" key.
Eric Wong [Tue, 1 Mar 2016 07:48:53 +0000 (07:48 +0000)]
httpd: document pi-httpd.async as totally unstable
We'll have to use it some more before deciding it is a public
interface. I do hope for it to be a usable public interface
one day for other users.
Eric Wong [Tue, 1 Mar 2016 04:15:59 +0000 (04:15 +0000)]
processpipe: preserve native close behavior
We need to ensure close on handles tied to this class
get the same errors a normal "close" in Perl gets.
Eric Wong [Tue, 1 Mar 2016 03:44:04 +0000 (03:44 +0000)]
linkify: do not capture trailing '.' or ';' in URLs
It seems common for users to end statements with URLs,
while it is rare for a URL itself to end with a '.' or ';'.
So make a guess and assume the URL was intended to not
include the trailing '.' or ';'
Eric Wong [Tue, 1 Mar 2016 03:44:03 +0000 (03:44 +0000)]
extract linkification code to a separate package
This will allow us to more easily reuse it elsewhere.
Eric Wong [Tue, 1 Mar 2016 03:44:02 +0000 (03:44 +0000)]
MANIFEST: add examples/apache2_perl_old.conf
Ugh, I wonder if we can/should generate this automatically...
Eric Wong [Tue, 1 Mar 2016 02:45:34 +0000 (02:45 +0000)]
view: consolidate whitespace stripping from messages
We now keep intermediate blank lines in messages, since it
could be used to denote logical gaps in the message
(such as giving readers a chance to opt out of "spoiler"
information).
However leading blank lines, trailing blank lines, and
trailing whitespace have no useful value we can discern;
so drop those entirely to prevent clients from eating up
vertical whitespace.
Eric Wong [Tue, 1 Mar 2016 02:08:38 +0000 (02:08 +0000)]
view: do not hide patches or signatures
It's often not that much information and may be useful
to reduce HTTP requests a reader will want to make.
Eric Wong [Mon, 29 Feb 2016 10:58:39 +0000 (10:58 +0000)]
fixup Plack-related requires
We do not need to load Plack::Request outside of WWW anymore.
Eric Wong [Mon, 29 Feb 2016 08:21:40 +0000 (08:21 +0000)]
t/init.t: avoid spewing directory names in output
This is a step towards having consistent, reproducible
test output. (ugh, but each %hash usage screws that up).
Eric Wong [Mon, 29 Feb 2016 02:48:45 +0000 (02:48 +0000)]
t/search.t: use transactions to reduce I/O load
In case folks do not use eatmydata or tmpfs for testing,
use transactions to reduce the number of fsync calls
made and hopefully prevent drives from wearing out.
Eric Wong [Mon, 29 Feb 2016 01:34:33 +0000 (01:34 +0000)]
git-http-backend: fixes for mod_perl
Apache2 mod_perl does not give us a real file handle, so
we must translate that before giving that to git-http-backend(1).
Also, parse the Status: correctly for errors since we failed to
set %ENV properly before the previous fix for SpawnPP
Eric Wong [Mon, 29 Feb 2016 01:32:24 +0000 (01:32 +0000)]
spawnpp: use env(1) for mod_perl compatibility
We cannot modify %ENV directly under mod_perl (even after forking!),
so use env(1) instead to pass the environment.
Eric Wong [Mon, 29 Feb 2016 01:05:16 +0000 (01:05 +0000)]
git-http-backend: stricter parsing of CRLF
It is not needed as we know git uses CRLF termination.
Eric Wong [Mon, 29 Feb 2016 00:56:20 +0000 (00:56 +0000)]
favor procedural calls for most private functions
This makes for better compile-time checking and also helps
document which calls are private for HTTP and NNTP.
While we're at it, use IO::Handle::* functions procedurally,
too, since we know we're working with native glob handles.
Eric Wong [Mon, 29 Feb 2016 00:41:02 +0000 (00:41 +0000)]
distinguish error messages intended for users vs developers
For error messages intended to show user error (e.g. giving
invalid options), we add a newline ("\n") at the end to
polluting the output with location information.
However, for diagnosing non-user-triggered errors, we should
show the location of where the error occured.
Eric Wong [Mon, 29 Feb 2016 00:29:03 +0000 (00:29 +0000)]
http: avoid needless time2str calls
Checking the time is nearly free on modern systems with
vDSO/vsyscall/similar while sprintf is always expensive.
Eric Wong [Mon, 29 Feb 2016 00:13:43 +0000 (00:13 +0000)]
http: document event_write usage
It may not be obvious where we are when we enter the event_write
callback. Hopefully this clarifies things.
Eric Wong [Mon, 29 Feb 2016 00:11:23 +0000 (00:11 +0000)]
http: error check for sysseek on input
Just in case we screwed up somewhere, we need to match up
syswrite to sysseek and we also favor procedural calls for
native types.
Eric Wong [Sun, 28 Feb 2016 23:06:31 +0000 (23:06 +0000)]
examples/public-inbox.psgi: relax license to GPL-3.0+
Using the AGPL for server config files is probably overkill.
GPL-3.0+ still requires appliance vendors to disclose
configurations which seems desirable for end users.
Eric Wong [Sun, 28 Feb 2016 23:03:52 +0000 (23:03 +0000)]
examples: various Apache-related doc updates
Plack::Handler::Apache2 exists and seems to work very well.
Eric Wong [Sun, 28 Feb 2016 22:40:22 +0000 (22:40 +0000)]
examples/cgi-webrick.rb: set CGIPathEnv, update comments
webrick clears PATH otherwise, and we rely on git commands.
Eric Wong [Sun, 28 Feb 2016 22:28:50 +0000 (22:28 +0000)]
examples/: PSGI example updates
Users wanting to customize their installation should know
to about the usability of STDOUT for logging.
(and we still need manpages for -nntpd and -httpd)
Eric Wong [Sun, 28 Feb 2016 23:39:12 +0000 (23:39 +0000)]
spawnpp: die instead of exit on exec failure
Perl may complain about exit not being executed, but not die.
Eric Wong [Sun, 28 Feb 2016 23:36:45 +0000 (23:36 +0000)]
newswww: set Content-Type properly
Oops :x
Eric Wong [Sun, 28 Feb 2016 20:57:57 +0000 (20:57 +0000)]
http: support graceful shutdown like nntp
HTTP responses may be long-running or requests may be slow or
pipelined. Ensure we don't kill them off prematurely.
Eric Wong [Sun, 28 Feb 2016 11:28:33 +0000 (11:28 +0000)]
reduce calls to close unless error checks are needed
We can rely on timely auto-destruction based on reference
counting; reducing the chance of redundant close(2) calls
which may hit the wront FD.
We do care about certain close calls (e.g. writing to a buffered
IO handle) if we require error-checking for write-integrity. In
other cases, let things go out-of-scope so it can be freed
automatically after use.
Eric Wong [Sun, 28 Feb 2016 11:28:32 +0000 (11:28 +0000)]
searchidx: use defined for checking EOF behavior
While empty or "0" should never appear, this allows the
reviewer to think and know less about the context in which
this check is done.
Eric Wong [Sun, 28 Feb 2016 11:28:31 +0000 (11:28 +0000)]
t/: remove unnecessary Dumper use
No point in loading Data::Dumper if we do not use it
in the tests.
Eric Wong [Sun, 28 Feb 2016 05:26:38 +0000 (05:26 +0000)]
searchmsg: update + fix license header
Not sure how, but this should've always been AGPL-3.0+ like
the rest of the code, not GPL-3.0+
Eric Wong [Sun, 28 Feb 2016 05:22:07 +0000 (05:22 +0000)]
MANIFEST: update (generate via "git ls-files")
It's been a while...
Eric Wong [Sun, 28 Feb 2016 00:57:11 +0000 (00:57 +0000)]
httpd: allow running if ReverseProxy is missing
Not everybody will be running this behind a ReverseProxy;
but it's probably the likely configuration. Anyways,
warn about this and also about Deflater being missing.
Eric Wong [Sun, 28 Feb 2016 04:27:11 +0000 (04:27 +0000)]
spawn: disable popen optimization for non-vfork
This is necessary since we want to be able to do arbitrary redirects
via the popen interface. Oh well, we'll be a little slower for now
for users without vfork. vfork users will get all the performance
benefits.
Eric Wong [Sun, 28 Feb 2016 04:27:10 +0000 (04:27 +0000)]
spawnpp: fix error message for stderr redirect failing
Oops :x
Eric Wong [Sat, 27 Feb 2016 22:36:32 +0000 (22:36 +0000)]
daemon: refresh before forking
This means we always load the PSGI server code early for
-httpd. This may make things less compatible with existing
PSGI/Plack apps, but we prioritize our httpd for the uses
of public-inbox itself, first.
And any existing PSGI/Plack app which wants to may adapt
themselves to being preload-friendly.
Eric Wong [Sat, 27 Feb 2016 22:18:04 +0000 (22:18 +0000)]
spawn: fail properly if Inline fails
We must stash the error correctly when nesting evals, oops :x
Eric Wong [Sat, 27 Feb 2016 21:57:57 +0000 (21:57 +0000)]
move executables to script/ directory
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.
Eric Wong [Sat, 27 Feb 2016 21:31:24 +0000 (21:31 +0000)]
git: use built-in spawn implementation for vfork
This should reduce overhead of spawning git processes
from our long-running httpd and nntpd servers.
Eric Wong [Sat, 27 Feb 2016 02:14:23 +0000 (02:14 +0000)]
initial spawn implementation using vfork
Under Linux, vfork maintains constant performance as
parent process size increases. fork needs to prepare pages
for copy-on-write, requiring a linear scan of the address
space.
Eric Wong [Sat, 27 Feb 2016 02:14:21 +0000 (02:14 +0000)]
http: simplify offset calculation slightly
No point in comparing an empty string; length() is only
potentially expensive on big strings.
Eric Wong [Fri, 26 Feb 2016 09:15:36 +0000 (09:15 +0000)]
psgi: enable ReverseProxy middleware by default
ReverseProxy is the common way to run Perl applications,
so enable it by default and don't care too much about fake
requests because we don't handle any sensitive information
or rely on authentication (everything is read-only from
the WWW interface and will remain so).
Eric Wong [Fri, 26 Feb 2016 09:14:21 +0000 (09:14 +0000)]
daemon: update comment about usage in httpd
Writing a read-only IMAP server isn't out-of-scope, either,
but I've never studiied the IMAP protocol, much, unlike HTTP/1.x
or even NNTP.
Eric Wong [Fri, 26 Feb 2016 03:51:47 +0000 (03:51 +0000)]
httpd: avoid loading our WWW-specific code early
We want this to be usable as a generic httpd for other Free Software
projects, so do not force users to load our WWW code at
compile-time.
Eric Wong [Fri, 26 Feb 2016 03:44:23 +0000 (03:44 +0000)]
www: add News* wrappers to preload
We want to preload as much as possible in -httpd when forking
to save memory via CoW.
Eric Wong [Fri, 26 Feb 2016 01:57:57 +0000 (01:57 +0000)]
www: workaround for malformed NNTP links
Some linkifiers to create invalid HTTP links when it sees a
link intended for NNTP services. This means we may see links
to news.public-inbox.org/inbox.comp.mail.public-inbox.meta
point to "http://" on port 80 instead of 119. Try to
redirect users to http://public-inbox.org/meta/ in this case.
Eric Wong [Fri, 26 Feb 2016 01:57:56 +0000 (01:57 +0000)]
support protocol-relative URLs in publicinbox.$LISTNAME.url
All URL generation in dynamic HTTP pages should be capable of
generating "https" or "http" URLs depending on the user's
preference.
Eric Wong [Fri, 26 Feb 2016 01:57:54 +0000 (01:57 +0000)]
git-http-backend: extract input_to_file function
This will allow us to more easily read and test later.
Eric Wong [Fri, 26 Feb 2016 02:35:04 +0000 (02:35 +0000)]
extmsg: do not modify shared array via prurl
We cannot modify elements in any shared data strucutures
shared between requests. Oops!
Eric Wong [Fri, 26 Feb 2016 01:57:55 +0000 (01:57 +0000)]
extmsg: allow returning 404 responses
We will be falling back and cascading to newsgroup lookups, later.
Eric Wong [Thu, 25 Feb 2016 05:26:23 +0000 (05:26 +0000)]
httpd: fill in missing Danga::Socket callbacks
Danga::Socket will die on us if we hit the base implementations.
Eric Wong [Thu, 25 Feb 2016 04:37:25 +0000 (04:37 +0000)]
git-http-backend: avoid multi-arg print statemtents
Even with output buffering disabled via IO::Handle::autoflush,
writes are not atomic unless it is a single argument passed to
"print". Multiple arguments to "print" will show up as multiple
calls to write(2) instead of a single, atomic writev(2).
Eric Wong [Thu, 25 Feb 2016 04:02:37 +0000 (04:02 +0000)]
git-http-backend: start async API for streaming
git-http-backend may take a while, ensure we can process other
requests while waiting on it. We currently do this via
Danga::Socket in public-inbox-httpd; but avoid exposing this
internal implementation detail to the PSGI interface and
instead only expose a callback via: $env->{'pi-httpd.async'}
Eric Wong [Thu, 25 Feb 2016 04:02:36 +0000 (04:02 +0000)]
git-http-backend: start refactoring to use callback
Designing for asynchronous, non-blocking operations makes
adapting for synchronous, blocking operation easy.
Going the other way around is not easy, so do it now and
allow us to be more easily adapted for non-blocking use
in the next commit...
Eric Wong [Thu, 25 Feb 2016 04:02:35 +0000 (04:02 +0000)]
use pipe for git-http-backend output
This allows us to stream the output to the client without buffering
everything up-front. Next, we'll let Danga::Socket (or AE in the
future) wait for readability.
Eric Wong [Thu, 25 Feb 2016 03:57:16 +0000 (03:57 +0000)]
hval: implement common UI for protocol-relative URLs
This allows users to avoid HTTPS -> HTTP downgrade warnings,
but we will also avoid encouraging them towards HTTPS, for now.
IMHO: the CA system gives a false sense of security,
TLS libraries (e.g. OpenSSL) can introduce new bugs and
problems (even to attack clients), and TLS libraries
also eats memory on cheap servers.
Eric Wong [Thu, 25 Feb 2016 03:10:51 +0000 (03:10 +0000)]
www: make interface more OO
This allows multiple instances the WWW app from
running within the same process space
Eric Wong [Thu, 25 Feb 2016 03:10:50 +0000 (03:10 +0000)]
remove direct CGI.pm support
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.
Eric Wong [Tue, 23 Feb 2016 06:52:09 +0000 (06:52 +0000)]
www: support $MESSAGE_ID/R/ endpoint for replies
Setting the "In-Reply-To:" header via mailto: links is not
well-supported and should probably not be encouraged unless
the client situation improves.
So instead, teach users more widely-supported ways of setting
the In-Reply-To: header to ensure proper threading of replies.
Eric Wong [Tue, 23 Feb 2016 06:52:08 +0000 (06:52 +0000)]
view: capture header object early
For future changes, this will allow us to more quickly notice
if we keep the heavy Email::MIME object around too long.
It has the side effect of avoiding extra method calls with
Email::MIME which forwards header calls to the header_obj.
Eric Wong [Tue, 23 Feb 2016 23:17:01 +0000 (23:17 +0000)]
t/httpd-corner: test HTTP chunking with curl
Just in case my knowledge of chunking is wrong.
Eric Wong [Tue, 23 Feb 2016 02:52:18 +0000 (02:52 +0000)]
initial public-inbox-httpd implemenation
This is meant to provide an easy starting point for server admins.
It provides a basic HTTP server for admins unfamiliar with
configuring PSGI applications as well as being an identical
interface for management as our nntpd implementation.
This HTTP server may also be a generic Plack/PSGI server for
existing Plack/PSGI applications.
Eric Wong [Mon, 22 Feb 2016 01:36:27 +0000 (01:36 +0000)]
extmsg: support "//" protocol-relative URLs
Avoid unintentionally switching protocols if the external site
we're linking to supports both HTTP and HTTPS.
We do not want to force HTTPS everywhere because potential
bugs and performance problems in the TLS stack may outweigh
the privacy benefits. Leave up to site authors and users
to decide whether they want HTTPS or plain old HTTP.
Eric Wong [Sat, 13 Feb 2016 23:20:20 +0000 (23:20 +0000)]
www: document "git clone --mirror" usage
Not everybody is willing to install or run ssoma; but at least
document "git clone --mirror" usage to promote data distribution.
It's wasteful to clone without "--mirror", so we'll suggest that
to avoid wasting disk space and inodes.
Eric Wong [Sat, 13 Feb 2016 23:11:44 +0000 (23:11 +0000)]
examples/public-inbox.psgi: document ReverseProxy
Running behind a ReverseProxy is a popular deployment,
so document it for users.
Eric Wong [Sat, 13 Feb 2016 23:03:32 +0000 (23:03 +0000)]
www: advertise clone-ability over http/https
All public-inbox instances shall be clone-able.
Eric Wong [Sat, 13 Feb 2016 22:34:37 +0000 (22:34 +0000)]
feed: favor relative URL to Atom feed in HTML
Normal browsers should understand relative path names.
Atom feeds may be hosted externally and seems to need
full URLs.
Eric Wong [Fri, 12 Feb 2016 09:56:09 +0000 (09:56 +0000)]
README: fix broken link to dc-dlvr-spam-flow
Reported-by: Jordi Bunster <jordi@bunster.org>
Eric Wong [Mon, 8 Feb 2016 18:11:54 +0000 (18:11 +0000)]
view: fix link to top-level ghost parent
In an single-message thread with a ghost parent, we need to
go up level from the current Message-ID before appending the
parent message to us.
Eric Wong [Mon, 8 Feb 2016 11:20:59 +0000 (11:20 +0000)]
view: simplify topic handling based on subjects
Dropping "[FOO]" prefixes for the purposes of summarization
is tricky and we end up with odd display behavior.
Just show Subject line changes as the writer intended
(with the exception of normalization to strip the "Re: ")
Eric Wong [Mon, 8 Feb 2016 07:37:43 +0000 (07:37 +0000)]
feed: declare alternate link to HTML interface
It seems we need to declare "alternate" and "text/html" at least
for feed readers.
Eric Wong [Sun, 7 Feb 2016 08:35:29 +0000 (08:35 +0000)]
support smart HTTP cloning
This requires POST and (small file) upload support from the
PSGI/Plack web server. CGI.pm is currently not supported with
this feature.
We'll serve everything git can handle by default for performance
in the general case.
To avoid introducing cognitive overhead for sysadmins managing
existing HTTP backends, we do not introduce new configuration
directives.
Thus, setting http.uploadpack=false in the relevant git config
file for each public-inbox (ssoma) git repo will disable smart
HTTP for CPU/memory-constrained systems.
Technically we could support http.receivepack to allow posting
messages to a public-inbox over HTTP(S), but that breaks
the public-inbox model of encouraging users to Cc: everyone.
Again, we encourage users to Cc: everyone to reduce the chance
of a public-inbox becoming a centralized point of
failure/censorship.
Eric Wong [Thu, 4 Feb 2016 09:15:54 +0000 (09:15 +0000)]
t/cgi.t: fix broken test for dumb HTTP
This should not be dependent on what is in the users'
$HOME config, oops.
Eric Wong [Tue, 2 Feb 2016 04:00:08 +0000 (04:00 +0000)]
www: support git cloning via dumb HTTP
This is enabled by default, for now.
Smart HTTP cloning support will be added later, but it will
be optional since it can be highly CPU and memory intensive.
Eric Wong [Mon, 1 Feb 2016 04:06:08 +0000 (04:06 +0000)]
doc: misc cleanups and whitespace additions
Add a few newlines for readability (perhaps at the expense of
economy). Stop mentioning "Open Source" as it is redundant
and "Free Software" fits our goals, better.
Eric Wong [Mon, 1 Feb 2016 01:35:24 +0000 (01:35 +0000)]
view: reference ghost parent in permalink view
We should not hide the parent Message-ID in this view;
give the user the option to find the message in other archives.
Eric Wong [Sat, 30 Jan 2016 23:28:37 +0000 (23:28 +0000)]
view: cleanup permalink Thread: header display
The word "skip" can be confusing. Instead, spell out "scroll down"
for the user to read and only display that text when the thread
is sufficiently long.
Eric Wong [Sat, 30 Jan 2016 23:27:18 +0000 (23:27 +0000)]
view: do not kill whitespace in permalink thread timestamp
There's no need to HTML escape a timestamp we generate ourselves.
We need to preserve the leading space and can't use the "oneline"
semantics to preserve alignment.
Eric Wong [Sat, 16 Jan 2016 04:56:53 +0000 (04:56 +0000)]
view: explain why we do not use blockquote
Inevitably, somebody will care about semantic HTML; but
preserving the original intent of the email author is
important.
Eric Wong [Sat, 9 Jan 2016 10:53:10 +0000 (10:53 +0000)]
www: fix redirection loops
Sometimes users forget trailing slashes; but we should not punish
them with infinite loops.
Eric Wong [Sat, 9 Jan 2016 09:45:22 +0000 (09:45 +0000)]
view: fix Atom feed link in full message view page
Oops :x
Eric Wong [Sat, 9 Jan 2016 09:45:21 +0000 (09:45 +0000)]
hval: new should not strip leading spaces
We should be able to use this for ASCII art and paragraphs
Eric Wong [Sat, 9 Jan 2016 09:45:20 +0000 (09:45 +0000)]
hval: use more appropriate hvals for documentation
Not needed, but this is good documentation. Some of these values
should never have newlines.
Eric Wong [Wed, 6 Jan 2016 00:08:59 +0000 (00:08 +0000)]
TODO: add a few more items
Sometimes I contribute to projects with centralization-inducing
things like reply-to-list and bug trackers.
I dislike those things myself, but most of the time I can deal with
them... for now.