about summary refs log tree commit homepage
DateCommit message (Collapse)
2015-09-04doc: design_www: more accessibility guidelines
Despite best intentions, things like strike-throughs and italics won't render well and will harm accessibility.
2015-09-03www: move fallback after legacy matches
We do not want to get legacy URLs swallowed up by our workaround for weird and wonky servers that attempt to unescape PATH_INFO before the app sees it.
2015-09-03feed: use application/atom+xml for Content-Type
This is the correct Content-Type for Atom feeds, especially since we updated to use ".atom" as the suffix.
2015-09-03examples/public-inbox.psgi: update with middlewares
HTML, text, and probably Atom feeds should be compressed.
2015-09-03www: attempt to handle Message-IDs with slashes
Unfortunately, some HTTP servers will try to be clever with %2F and escape it to '/', making life difficult for us. Fortunately, not many Message-IDs have slashes in them.
2015-09-03get rid of Message-ID compression entirely
Provide a fallback for legacy SHA-1 messages, but do not advertise shorter URLs anymore for data portability concerns. This fixes a regression introduced in commit 81a9c1b476987d845b340ab9013d26cf4487cb9a ("search: disable Message-ID compression in Xapian") which ended up breaking thread-related endpoints for large Message-IDs, as lookups on the SHA-1 message no longer worked.
2015-09-03ExtMsg: 300 to external mailing list archives
Since cross-posting is inevitable, we shall link to external message archives for interopability.
2015-09-03search: disable Message-ID compression in Xapian
We'll continue to compress long Message-IDs in URLs (which we know about), but we will store entire Message-IDs in the Xapian database to facilitate ease-of-lookups in external databases.
2015-09-03view: include ghost messages in thread views
We'll be expanding our ghost message lookup facilities, so it makes sense to generate links to them even if they are currently unknown.
2015-09-02implement external Message-ID finder
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.
2015-09-02view: avoid links to unknown compressed Message-IDs
Compressed Message-IDs are irreversible and may not be used at other sites. So avoid compressing Message-IDs we do not know about so users have a chance of finding the message in other archives by doing a Message-ID lookup.
2015-09-02view: pre-anchor entries for flat view
This will allow users to navigate the flat view without making extra HTTP requests.
2015-09-02view: simplify parent anchoring code
This will make things easier for the next commit to pre-populate the `$seen' hash for linking within the flat view of a thread.
2015-09-02view: account for missing In-Reply-To header
Some mail clients do not generate In-Reply-To headers, but do generate a proper References header. This matches the behavior of Mail::Thread as well as our SearchIdx code to link threads in the Xapian DB.
2015-09-02view: optional flat view for recent messages
For still-active threads, it will likely be easier to follow them chronologically, especially if we have links to parent messages.
2015-09-02view: close possible race condition in thread view
It's possible that the Xapian index and git HEAD can be out-of-sync and a message which existed when we did the search is no longer accessible by the time we get to rendering it.
2015-09-01view: purge email address cache after rendering thread
We cannot allow memory in the cache to grow at an unbounded rate in between HTTP requests.
2015-09-01feed: extra newline after nav footer if list footer exists
It makes sense to distinguish the two a little.
2015-09-01view: change wording to include "thread" in footer
Hopefully make it more obvious we're downloading or following just one thread and not everything else.
2015-09-01feed: fix <updated> tag in Atom feed
Fixes commit d44ed46ee92c78aaaed64975c4d6846613963be4 ("implement per-thread Atom feeds")
2015-09-01view: add missing space
This fixes a regression introduced in commit 1b4b2c7b8b2f2df8f114617d2e875eaf5c839ce0 ("completely revamp URL structure to shorten permalinks")
2015-09-01view: more robust link generation
We must avoid double-escaping in cases where we have URLs anchored by "<>" in the plain-text as is common (and AFAIK recommended) convention. So we must use a two step linkification process to prevent double-escaping.
2015-09-01view: drop extra '</a>' tag
Oops.
2015-09-01completely revamp URL structure to shorten permalinks
This allows common /m/ links to be used without a prefix, saving 2 precious bytes for permalinks and raw messages. Old URLs continue to redirect.
2015-09-01www: root atom feed is "new.atom" and not "atom.xml"
The MIME type entry for Atom feed relies on "atom", so allow properly-configured static file servers to serve it with the correct Content-Type header.
2015-09-01www: compile mbox regexp only once
No need for 'x' modifier to span more lines, though
2015-09-01implement per-thread Atom feeds
This allows users to subscribe to only a single thread with their feed reader without subscribing to the rest of the thread. Update our endpoint notes while we're at it.
2015-09-01feed: extract atom header generation
We'll be using it for per-thread subscriptions
2015-09-01feed: use updated date based on git commit date
This will hopefully make life easier for feed readers.
2015-09-01search: show newest results first
Like revision control history, older stuff is less relevant, so favor newer stuff, first.
2015-09-01search: allow querying all mail with ''
This makes dumping recent topics easier, hopefully.
2015-09-01search: reduce redundant doc data
Redundant document data increases our database size, pull the smsg->mid off the unique term, the smsg->ts off the value, and only generate the formatted display date off smsg->ts.
2015-08-30www: avoid BEGIN block for config loading
It fails the syntax check if a user does not have ~/.public-inbox/config setup. Anyways we can safely use ||= on a global since we do not support threads.
2015-08-30view: avoid broken parent link in per-message view
Broken by commit f24d362fb0959cdfab37a6da0a66a985764a2752 ("view: display thread outline in single-message view")
2015-08-30view: remove "threadlink" from thread view
We're already inside the thread, and our thread summary inside /m/$MESSAGE_ID/ is already sufficient got navigate back to the /t/$MESSAGE_ID/ page. So I think it's sufficient to keep the /t/$MESSAGE_ID/ page lighter with fewer links and avoid introducing strange terminology. In contrast, "permalink" is relatively well-known and not an alien term to readers: https://en.wikipedia.org/wiki/Permalink
2015-08-30view: remove "threadlink" name in per-message view
It's a strange word and I'm not quite comfortable with it in a message view. Instead, use a descriptive link for the thread headers.
2015-08-30mid2path: clean MID of angle brackets '<>'
We screwed up and needed to fix URL generation with '<>' in them. Regardless, users may attempt to copy and paste URLs with '<>' in them, do not punish them for that.
2015-08-30view: fix broken threadlink
This regression was accidentally introduced in commit f24d362fb0959cdfab37a6da0a66a985764a2752 ("view: display thread outline in single-message view")
2015-08-30public-inbox-index: resolve git directory if run inside one
I often forget to pass the correct path to a git directory or run from inside one. Fortunately git is script-friendly and allows easily resolving the correct GIT_DIR path.
2015-08-30search: do not index references and inreplyto terms
We no longer need them, as we can rely on index-time thread resolution and thread merging. This allows us to index less data and hopefully increase efficiency.
2015-08-30view: display thread outline in single-message view
If Xapian search is available, we can load most of the entire thread and show a more meaningful navigation tree than the References: and In-Reply-To: headers. Searching on those headers themselves is unreliable because it is possible for clients to omit some references.
2015-08-30view: update linkification regexp to be more domain sensitive
This avoids capturing links such as "http://#{foo}" => "http://#" inside diffs
2015-08-29view: remove dead commented line
Not needed since commit 9a2931759c3dcbd879728b49151aa3f8a641b506 ("wire up to display non-suffixed Message-ID links")
2015-08-29avoid length in boolean context
Perl does not currently optimize for this. ref (from p5p): http://mid.gmane.org/D5C27970-9176-4C7A-8B99-7D78360E67A2@pobox.com
2015-08-29public-inbox-init: make executable
Mainly for consistency and documentation purposes, as "make install" automatically sets the executable bit
2015-08-28search: do not iterate through entire termlist
A document may have many terms, so this hurts performance if we blindly iterate. Unfortunately, we can't rely on the order of the termlist just yet, either, so we must repeatedly restart the search for now until we're ready to bump schema versions.
2015-08-28search: do not load type into metadata
Our search query already filters out ghost messages, so it's wasteful to have type information loaded.
2015-08-28GitCatFile: remove unnecessary FD_CLOEXEC setting
Unless some idiot raises $^F, we should not have to care about the close-on-exec flag. Everything since Perl 3.0 seems to set it by default, and 5.6 got more consistent about it.
2015-08-27view: fix short followup links
This was broken by commit 9a2931759c3dcbd879728b49151aa3f8a641b506 ("wire up to display non-suffixed Message-ID links")
2015-08-27filter: reject bad attachments outright
Might as well be strict about it for new lists. Importing old archives might be more of a challenge, though.