about summary refs log tree commit homepage
path: root/lib
DateCommit message (Collapse)
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-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-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.
2015-08-27implement legacy redirects for old URLs
We should not break existing URLs. Redirect them to the newer, less-ambiguous URLs to improve cache hit ratios.
2015-08-27wire up to display non-suffixed Message-ID links
These URLs are preferable in case somebody decides to get cute and use a suffix we would've used to prevent others from linking to their message. The common /m/$MESSAGE_ID/ URLs are now 4 characters shorter so may fit better on terminals.
2015-08-27mid: extract Message-ID from inside '<>'
This is necessary for some mailers which include comment text in in the In-Reply-To header, merely assuming there is nothing outside of '<>' as we were doing is not enough.
2015-08-27wire up shorter, less ambiguous URLs
We will prefer URLs without suffixes for now to avoid ambiguity in case a Message-ID ends with ".html", ".txt", ".mbox.gz" or any other suffix we may use. Static file compatibility is preserved by using a trailing slash as most servers can/will fall back to an index.html file in this case. For raw text files, we will follow gmane's lead with "/raw"
2015-08-27www: minor cleanups to shorten code
Less scrolling is more efficient.
2015-08-27www: reduce unused arguments in internal API
Less code is easier-to-manage, although we make a few extra hash insertions now.
2015-08-26mbox: close file handle for single mbox
This doesn't seem needed for actual server use, but Plack tests complain about it
2015-08-25feed: fix "created" vs "updated" diff in topics
This fixes a regression introduced in commit 72c0f7c71ff28de9755dc4aee8b6ce6f0e4f2ed7 (feed: merge subjects regardless of "[PATCH vN]")
2015-08-25filter: loosen regexp on type matches
part_type still contains the filename, unfortunately, so PGP signatures were truly stripped. Oh well, nobody cares to verify PGP signatures anyways.
2015-08-25feed: merge subjects regardless of "[PATCH vN]"
This normalizes rerolled patches with identical topics, but does not normalize different patches even if they are in the same thread (for now).
2015-08-25search: implement subject summarization
We ought to summarize subjects to avoid exploding line lengths in the web interface.