about summary refs log tree commit homepage
path: root/lib/PublicInbox
DateCommit message (Collapse)
2016-07-06feed: fix links to attachments in Atom feed
Oops...
2016-07-06www: use HTML <hr> instead of XHTML <hr />
We only need XHTML-compatibility inside Atom feeds, as anecdotally, feed readers are stricter than normal browsers and some do not support HTML, only XHTML. So we will continue to accomodate them. However we favor HTML elsewhere since it tends to be smaller than the equivalent well-formed XHTML.
2016-07-06view: fix double-escaping of ghost links
Oops :x
2016-07-06extmsg: switch to wwwstream for partial match, too
Another step towards a consistent WWW UI...
2016-07-06extmsg: disable automatic inbox switching
Automatic inbox switching was a potentially deceptive pattern and surprises readers who do not check the URL bar closely. Furthermore, a message could be cross-posted to multiple lists, too.
2016-07-06wwwstream: allow undef noop callback
This can be use to specify a small response using -html_tip.
2016-07-06address: attempt to handle comments somewhat
They're uncommon, fortunately, but we make no attempt to handle nested comments (which would open us up to things like CVE-2015-7686) or use the comment in place of a missing name.
2016-07-06hval: get rid of unused parameter for new_msgid
Exposing compressed Message-IDs in URLs was a mistake, remove a remnant of it.
2016-07-06daemon: disable USR2/TTIN/TTOU/WINCH in workers
If using a master/worker setup, a careless user could be trying to signal all processes using "killall". This may trigger bad side-effects; but try to limit the side-effects as much as possible.
2016-07-03view: remove self-linkification in thread views
There is no point for diverting readers' attention with an unnecessary link, here.
2016-07-03githttpbackend: match Content-Type of git-http-backend(1)
This will allow cache proxies such as Varnish to avoid caching data sent by us.
2016-07-02wwwstream: wording/grammar tweaks in trailer
git.git documentation uses "clonable" so that's probably a better term than "clone-able". Also, shorten the section for retrieving our code and remove an obvious typo.
2016-07-02nntp: respect 3 minute idle time for shutdown
This avoids breaking clients on graceful shutdown since NNTP responses should usually be quick.
2016-07-02nntp: simplify update_idle_time
This ought to make things easier when we add TLS support.
2016-07-02config: introduce each_inbox for iteration
This fills in the internal lookup hashes and simplifies callers.
2016-07-02linkify: allow '!' in URLs
GoogleGroups URLs often contain '!' in them
2016-07-02www: remove Plack::Request dependency entirely
Lighter and ever-so-slightly faster! Most importantly, this won't do non-obvious stuff behind our backs like trying to parse a POST request body for a query string param.
2016-07-02view: rely on internal query parser for 'o' param
Plack::Request will check the request body by merely calling "param", totally unnecessary and sneaky.
2016-07-02www: use PSGI env directly
More work on on the Plack::Request/CGI.pm removal front, No need to access the PSGI env through an extra hash lookup.
2016-07-02extmsg: rework to use Inbox objects
This is less code and hopefully easier-to-understand.
2016-07-02inbox: base_url method takes PSGI env hashref instead
This is lighter and we can work further towards eliminating our Plack::Request dependency entirely.
2016-07-01view: avoid redundant trailing slash for In-Reply-To
Oops, fortunately this branch is only exposed to non-Xapian users, right now.
2016-07-01address: filter out domain from address-as-name idents
It seems common for address entries to end up as: "foo@example" <foo@example> Avoid needlessly displaying the domain name in that case.
2016-07-01www_stream: fix stupid typo :x
Note to self: remember to run tests Fixes: 52052329aced ("git: allow cloning from the URL root, too")
2016-07-01git: allow cloning from the URL root, too
This means we can still show non-git users a somewhat browseable URL with a link to the README.html file while allowing git users to type less when cloning. All of the following are supported: git clone https://public-inbox.org/ public-inbox git clone https://public-inbox.org/public-inbox git clone https://public-inbox.org/public-inbox.git torsocks git clone http://ou63pmih66umazou.onion/public-inbox
2016-07-01update git repo location to https:// using GitHTTPBackend.pm
Might as well eat our own dogfood...
2016-07-01githttpbackend: allow git to be a regular scalar string
No point in forcing users to pass a hashref/object to get a single git directory.
2016-07-01searchview: add missing newline in search results
Hrm... is there a more obvious way to do an internal API for this while still being streamable?
2016-07-01www_stream: fix search for new.html endpoint
We want to avoid the bare './' wherever possible, but it doesn't seem possible here.
2016-06-30view: fix permalink and raw links at the top
Oops :x I really need to whip check-inbox.perl into shape or at least start running it, again. Fixes: e29518088b3f ("view: fix up some HTML injection via Message-ID vectors")
2016-06-30view: move per-message anchor to top in conversation view
This fixes the '^' (up) link in the $INBOX/new.html endpoint for search-less displays.
2016-06-30searchview: show result count in thread index, for now
I'm not sure what to show here, actually; but it's better than triggering an uninitialized variable warning.
2016-06-30view: reference posting style article on Wikipedia
Storage is precious when it is forever and distributed. And public-inbox aims to not only end Eternal September(*), but to build a world less-centralized than Usenet ever was: forkable discussion groups (*) https://en.wikipedia.org/wiki/Eternal_September
2016-06-30view: improve readability of msg_reply with here-doc
This should make formatting more apparent since we can rely on <pre> semantics.
2016-06-30www_stream: add response wrapper sub
This encapsulates an entire PSGI response array, hopefully making it easier to generate responses and avoid typos when setting the Content-Type.
2016-06-30view: fixup bad reference to new_msgid
Oops, this endpoint needs testing :x
2016-06-30Merge branch 'thread-view-skel'
* thread-view-skel: view: show thread size when linking to summary view: default to flat/hybrid thread display view: fix up some HTML injection via Message-ID vectors www: reinstate old thread view as an option view: show more nearby messages in flat thread view view: tweak thread/index header slightly feed: add $INBOX/new.html endpoint view: merge $state hash with existing $ctx view: show thread context in the thread-aware flat view www: use WwwStream for dumping thread and search views www: implement hybrid flat+thread conversation view
2016-06-30view: show thread size when linking to summary
This should give readers a better idea of what to expect.
2016-06-30view: default to flat/hybrid thread display
This is friendlier for people on small screens and usually eliminates the need to scroll horizontally.
2016-06-30view: fix up some HTML injection via Message-ID vectors
Oops, these were only introduced during the hybrid flat thread view reworking and never deployed.
2016-06-30www: reinstate old thread view as an option
This hybrid view is better than the old flat, but can still fall down compared to the old threaded view in some cases.
2016-06-30Revert "view: update git-send-email URL"
This reverts commit a391cf5aaf7181b5e5e20eb240c7ce50cbdf8fa2 as kernel.org is updating again. Ref: http://mid.gmane.org/xmqqpor18a2n.fsf@gitster.mtv.corp.google.com
2016-06-30view: show more nearby messages in flat thread view
Context is important, but so is conserving precious screen space. Decisions :<
2016-06-30view: tweak thread/index header slightly
This makes the top permalink/raw as well as the In-Reply-To show up without search. While we're at it, try to make the links on the thread index from the "X siblings, Y replies" more obvious.
2016-06-30feed: add $INBOX/new.html endpoint
This acts like the Atom feed; but should be viewable directly from browsers.
2016-06-30view: merge $state hash with existing $ctx
This reduces the level of indirection to reach certain objects within the hash and there are no namespace or lifetime conflicts anyways.
2016-06-30view: show thread context in the thread-aware flat view
This lets user have a small window of the context of the current message relative to other threads.
2016-06-30www: use WwwStream for dumping thread and search views
This allows us the HTTP server to react to backpressure from slow clients when writing. As a side effect, this also makes it easier for us to maintain a consistent header/footer across our HTML.
2016-06-30www: implement hybrid flat+thread conversation view
This should be more accessible to readers on narrow terminals (or giant fonts) while providing a chronological view which is also aware of message threading relationships.
2016-06-27view: HTML escape mailto: link
Oops, we cannot have bare '&' in mailto: links, either.