1
1
Fork 0
mirror of https://github.com/mjl-/mox.git synced 2025-03-25 11:14:46 +03:00
mox/webmail
Mechiel Lukkien 9e248860ee
implement transparent gzip compression in the webserver
we only compress if applicable (content-type indicates likely compressible),
client supports it, response doesn't already have a content-encoding).

for internal handlers, we always enable compression.  for reverse proxied and
static files, compression must be enabled per handler.

for internal & reverse proxy handlers, we do streaming compression at
"bestspeed" quality (probably level 1).

for static files, we have a cache based on mtime with fixed max size, where we
evict based on least recently used. we compress with the default level (more
cpu, better ratio).
2023-08-21 21:52:35 +02:00
..
api.go webmail: don't have two spaces between header and address(es) (e.g. for From/To) 2023-08-16 15:22:38 +02:00
api.json add flag to ruleset that indicates a message is forwarded, slightly modifying how junk analysis is done 2023-08-09 22:31:37 +02:00
api.ts add flag to ruleset that indicates a message is forwarded, slightly modifying how junk analysis is done 2023-08-09 22:31:37 +02:00
api_test.go fix race in test setup/teardown 2023-08-07 23:14:31 +02:00
eventwriter.go add webmail 2023-08-07 21:57:03 +02:00
lib.ts webmail: don't lose display of additional headers when a flag/keyword changes (e.g. marked as read) 2023-08-11 08:38:57 +02:00
message.go add webmail 2023-08-07 21:57:03 +02:00
msg.html add webmail 2023-08-07 21:57:03 +02:00
msg.js webmail: don't lose display of additional headers when a flag/keyword changes (e.g. marked as read) 2023-08-11 08:38:57 +02:00
msg.ts webmail: don't lose display of additional headers when a flag/keyword changes (e.g. marked as read) 2023-08-11 08:38:57 +02:00
text.html add webmail 2023-08-07 21:57:03 +02:00
text.js webmail: don't lose display of additional headers when a flag/keyword changes (e.g. marked as read) 2023-08-11 08:38:57 +02:00
text.ts add webmail 2023-08-07 21:57:03 +02:00
view.go add webmail 2023-08-07 21:57:03 +02:00
view_test.go fix race in test setup/teardown 2023-08-07 23:14:31 +02:00
webmail.go implement transparent gzip compression in the webserver 2023-08-21 21:52:35 +02:00
webmail.html add webmail 2023-08-07 21:57:03 +02:00
webmail.js webmail: correct label for Subject in search form 2023-08-15 13:03:02 +02:00
webmail.ts webmail: correct label for Subject in search form 2023-08-15 13:03:02 +02:00
webmail_test.go fix race in test setup/teardown 2023-08-07 23:14:31 +02:00