about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
DateCommit message (Collapse)
2014-05-04add various TODO items
Screen space is precious, and we do not need it in the abbreviated view.
2014-05-02view: API cleanup, remove "as_" prefix
These views are not OO, so the "as_" prefix makes little sense and "as_html" conflicts with Hval, which is OO.
2014-05-01purge Email::Address cache
This prevents memory bloat in case we're serving many requests with a large, diverse set of email addresses (potentially from malicious spammers).
2014-04-28uri_escape => uri_escape_utf8
We should be able to deal with URIs with non-ASCII characters in them. I only found this problem when looking at archives with non-English spam :x
2014-04-27view: uri_escape subject
This hopefully improves compatibility with mailers
2014-04-26view: show References: header, too
Some mail user agents use this header, and Mail::Thread uses it, too, so show it if possible, but only if it's not redundant to In-Reply-To.
2014-04-26view: add per-message HTML footer to encourage replies
This may not work with most mail user agents, however.
2014-04-26huge refactor of encoding handling
Hopefully this simplifies and corrects our usage of Perl encoding APIs.
2014-04-25cgi: eliminate dead/redundant HTML escaping code
2014-04-24html: refactor header value handling to be OO
This helps us keep track of escaping which needs to be done for various levels.
2014-04-22view: fix link to raw message from /f/ endpoint
Ugh, at least this has a test...
2014-04-22view: do not decode Message-ID
This is ridiculous, nobody (including ssoma) ever does this.
2014-04-18view: fix regression in standalone /^>$/ lines
The lack of trailing whitespace in quote prefixes threw us off and cause t/view to fail. This failure was caused by commit fefea3d7d2484ffbf433aec0dd80026aa7120e07 ("ensure per-message short quotes do not get too long") and not caught before pushing because I failed to run "make", only "prove" (and not even "prove -l" :x).
2014-04-17ensure per-message short quotes do not get too long
Sometimes a single long word or URL can lengthen the line too much.
2014-04-17view: remove pointless self-linkage
It is pointless to link to ourselves.
2014-04-17view: fix title of HTML views
We need to take care to escape everything properly to avoid HTML/JS injections.
2014-04-17view: inline shorter quotes
Breaking up short quote messages at 1 line is too disconcerting, try 5 lines as proper quotes shouldn't be too long.
2014-04-17HTML: various encoding fixups
2014-04-15view: finish HTML in per-message pages
2014-04-15HTML: ensure hrefs are quoted properly
We may be breaking some parsers or allowing more breakage to slip through without quotes. We waste some bytes, though.
2014-04-11view: trim_message_id consistently
Message-IDs could have embedded '<' and '>'
2014-04-06view: use "original" rather than "raw"
This wording is probably clearer to everyone, and also used by at least one other mailing list WWW interface.
2014-04-06view: minor cleanups
Avoid adding extraneous whitespace in HTML content, as it increases bandwidth usage of network, disk and memory.
2014-04-06feed: reuse view class to display message
This reduces duplicated/similar code and hopefully makes things more consistent.
2014-04-06view: all content is assumed to be displayable text
Our Filter class now passes through application/octet-stream if it looks like text (because some mailers suck); so we cannot trust the specified Content-Type of a message.
2014-04-05view: use URI::Escape to escape URIs
CGI::escape is not a documented subroutine, so the chances of it going away are higher.
2014-04-05view: implement quote folding and flesh out tests
Unfortunately, quoting is often excessive, so hide multi-line quotes by default and provide anchored links to full messages instead.
2014-04-05view: update IRP and MID links
We'll go with .html and .txt suffixes on MIDs to benefit static hosting setups.
2014-02-25view: add view module to be used for rendering HTML
This is to keep content accessible to search engines.