about summary refs log tree commit homepage
DateCommit message (Collapse)
2021-03-19examples: cgit-commit-filter: drop <tt> HTML tag, use title=
<tt> doesn't seem necessary and it's deprecated in HTML, nowadays. In any case, dillo's CSS support seems to show it as fixed-width even without <tt>. Use the title= attribute to highlight that it goes to the mail thread, too. In the future, we'll probably link to something like "lei p2q" (patch-to-query) to include OIDs in the search.
2021-03-19cgit: fix fallout from lazy coderepo loading
We can't completely instantiate our cgit wrapper without knowing knowing cgit locations for serving static content. Fixes: a5968dc059f655a ("config: lazy-load coderepos, support extindex")
2021-03-17lei_store: keywords => vmd (volatile metadata), prepare for labels
Since keywords and mailboxes (AKA labels) are separate things in JMAP; and only keywords can map reliably to Maildir and mbox; we'll keep them separate in our internal data representations, too. I initially wanted to call this just "meta" for "metadata", but that might be confused with our mailing list name. "metadata" is already used in Xapian's own API, to add another layer of confusion. "tags" was also considered, but probably confusing to notmuch users since our "labels" are analogous to "tags" in notmuch, and notmuch doesn't seem to cover "keywords" separately... So "vmd" it is, since we haven't used this particular three-letter-abbreviation anywhere before; and "volatile" seems like a good description of this metadata since everything else up to this point has been mostly WORM (write-once, read-many).
2021-03-17tests: show lsof output on deleted-file-check failures
This may help track down some occasional test failures I'm seeing.
2021-03-17www: improve visibility of coderepos
By adding "+code" next to "mirror" at the top next to the search box. Instead of showing "/path/to/$FOO", showing "$FOO.git" makes it more obvious we're talking about a git repo, here, instead of some random directory.
2021-03-17config: lazy-load coderepos, support extindex
Extsearch objects are duck-types of Inbox objects, and are capable of supporting code repos all the same.
2021-03-17extindex: add some validation and config knobs for WWW
We'll try to share a bit more configuration with extindex entries for WWW PSGI usage.
2021-03-17www_stream: add trailing slash for help and color links
This saves clients a redirect
2021-03-16eml: decode Bcc, and Resent-* address variants
This is closer to matching RFC 8621 section 4.1.2.3, though we don't support the "Any header field not defined in RFC5322 or RFC2369" rule, since that could get tricky...
2021-03-16lock: remove new_tmp method
Unused as of commit dda8237aeb5722b3a48c31896d9b7398e50823f1 ("lei_to_mail: prepare for worker offload") when we switched to using the LeiOverview output lock.
2021-03-16git: drop async_prefetch method
That logic is inlined directly into git_async_prefetch in GitAsyncCat and I don't see it being useful outside of a DS event loop.
2021-03-16nntp: remove unused header_append method
It was unused since 1bf653ad139bf7bb3d853ab0b5eae3eaa1b13a95 ("nntp+www: drop List-* and Archived-At headers")
2021-03-16lei_store: remove maildir_keywords
It's redundant and the same functionality is in MdirReader.
2021-03-16mbox: move mbox_keywords to MboxReader
MboxReader is a more appropriate place for it than LeiStore.
2021-03-15t/*: disable fsync on tests were create_inbox isn't worth it
Using create_inbox doesn't seem worth the trouble, here, at the moment, but disabling fsync(2) gives a noticeable speedup on my system even with an SSD.
2021-03-15t/altid_v2: create_inbox
Another 100ms saved
2021-03-15t/thread-index-gap: create_inbox
Yes, this loses some randomness w.r.t. shuffle, but I think it's "good enough" and buys us ~100ms speedup on an SSD TMPDIR.
2021-03-15t/nntpd: use create_inbox
2021-03-15t/nntpd-tls: use create_inbox
Another 100ms or so saved.
2021-03-15t/miscsearch: use create_inbox
2021-03-15t/psgi_search: use create_inbox
2021-03-15t/multi-mid: use create_inbox
2021-03-15t/indexlevels-mirror: use create_inbox
This saves hundreds of milliseconds and reduces LoC.
2021-03-15t/lei_xsearch: use create_inbox
This ends up being significantly faster when confined to a slow TMPDIR.
2021-03-15t/inbox_idle: switch to create_inbox
Surprising to me, this is actually significantly faster even though we're starting off with an empty inbox due to -no_fsync being the default.
2021-03-15t/edit: switch to create_inbox
Hardly any time reduction, but code gets more compact.
2021-03-15t/cgi: create_inbox
This only saves a few ms but is nicer to look at.
2021-03-15t/solver_git: use create_inbox
This saves us a dozen or so milliseconds.
2021-03-15t/imapd: create_inbox (minor)
This saves over 100ms.
2021-03-15t/psgi_v2: create_inbox
Some lines of code and a dozen milliseconds dealth with.
2021-03-15t/psgi_scan_all: create_inbox lots saved
A fair mount of setup code goes away and saves us a few hundred milliseconds.
2021-03-15t/psgi_multipart_not: use create_inbox
Over 100ms saved.
2021-03-15t/psgi_bad_mids: use create_inbox
Over 100ms saved and it's less code to boot.
2021-03-15t/feed: switch to create_inbox
This only saves a few milliseconds, but is less code.
2021-03-15t/psgi_mount: switch to create_inbox
A few dozen more milliseconds saved.
2021-03-15t/altid: use create_inbox
Another few dozen milliseconds saved.
2021-03-15t/convert-compact: create_inbox
Suprisingly, this saves over 100 milliseconds.
2021-03-15t/httpd: convert to create_inbox
No real difference, here, but having less code is nice.
2021-03-15t/psgi_attach: convert to create_inbox
Another few dozen milliseconds saved.
2021-03-15t/plack: use create_inbox
Only a few dozen milliseconds saved, but better than nothing.
2021-03-15t/html_index: remove now-worthless test
This was for quote-folding behavior we had long ago, but it ended up just being yet another import test.
2021-03-15t/admin: switch to create_inbox
Over 100ms saved. v2: quiet down "git gc" warnings on empty inboxes
2021-03-15t/v2dupindex: create_inbox
Another hundred milliseconds or so saved.
2021-03-15t/xcpdb-reshard: use create_inbox
Over 100ms saved and fewer LoC to boot
2021-03-15t/www_altid: use create_inbox
This barely saves any time due to sqlite3(1) fsync, but does save some lines of code.
2021-03-15t/imapd-tls: switch to create_inbox
This saves another few dozen milliseconds and LoC.
2021-03-15test_common: minor simplifications to setup_public_inboxes
This will results in a small reduction in on-disk footprint by removing Xapian docdata and reduction in code by removing an unnecessary -index invocation.
2021-03-15t/lei_xsearch: use create_inbox
Less code and noticeably faster when TMPDIR is on an SSD
2021-03-15test_common: add create_inbox helper sub
This saves over 100ms in t/lei-q-remote-import.t so far when TMPDIR is on an SSD. If we can memoize inbox creation to save a few dozen milliseconds every test, this could add up to noticeable savings across our entire test suite.
2021-03-15lei: reuse LeiStore object on config changes
Unless leistore.dir changes, the same LeiStore object is should remain reusable and accessible to any clients This seems to fix problems with t/lei-q-remote-import.t occasionally getting stuck