mox/webmail
Mechiel Lukkien 9e7d6b85b7
queue: deliver to multiple recipients in a single smtp transaction
transferring the data only once. we only do this when the recipient domains
are the same. when queuing, we now take care to set the same NextAttempt
timestamp, so queued messages are actually eligable for combined delivery.

this adds a DeliverMultiple to the smtp client. for pipelined requests, it will
send all RCPT TO (and MAIL and DATA) in one go, and handles the various
responses and error conditions, returning either an overal error, or per
recipient smtp responses. the results of the smtp LIMITS extension are also
available in the smtp client now.

this also takes the "LIMITS RCPTMAX" smtp extension into account: if the server
only accepts a single recipient, we won't send multiple.
if a server doesn't announce a RCPTMAX limit, but still has one (like mox does
for non-spf-verified transactions), we'll recognize code 452 and 552 (for
historic reasons) as temporary error, and try again in a separate transaction
immediately after. we don't yet implement "LIMITS MAILMAX", doesn't seem likely
in practice.
2024-03-07 10:07:53 +01:00
..
api.go queue: deliver to multiple recipients in a single smtp transaction 2024-03-07 10:07:53 +01:00
api.json better thread matching for dsns 2024-03-04 16:40:27 +01:00
api.ts better thread matching for dsns 2024-03-04 16:40:27 +01:00
api_test.go replace packages slog and slices from golang.org/x/exp with stdlib 2024-02-08 14:49:01 +01:00
eventwriter.go replace packages slog and slices from golang.org/x/exp with stdlib 2024-02-08 14:49:01 +01:00
lib.ts webmail: for junk/rejects messages, show sender address instead of name in list 2024-03-05 09:04:59 +01:00
message.go replace packages slog and slices from golang.org/x/exp with stdlib 2024-02-08 14:49:01 +01:00
message_test.go when making a message preview, also recognize []-enclosed "horizontal ellipsis" unicode character as a snip 2023-09-11 14:41:50 +02:00
msg.html webmail: ensure wrap of long header lines, instead of horizontal scrollbar in message header section 2023-10-12 22:08:13 +02:00
msg.js webmail: for junk/rejects messages, show sender address instead of name in list 2024-03-05 09:04:59 +01:00
msg.ts webmail: for long to/cc/bcc address list (>5) show the first 4 and a button to show the rest 2023-11-20 21:36:40 +01:00
text.html add webmail 2023-08-07 21:57:03 +02:00
text.js webmail: for junk/rejects messages, show sender address instead of name in list 2024-03-05 09:04:59 +01:00
text.ts add webmail 2023-08-07 21:57:03 +02:00
view.go replace packages slog and slices from golang.org/x/exp with stdlib 2024-02-08 14:49:01 +01:00
view_test.go replace http basic auth for web interfaces with session cookie & csrf-based auth 2024-01-05 10:48:42 +01:00
webmail.go replace packages slog and slices from golang.org/x/exp with stdlib 2024-02-08 14:49:01 +01:00
webmail.html replace http basic auth for web interfaces with session cookie & csrf-based auth 2024-01-05 10:48:42 +01:00
webmail.js webmail: for junk/rejects messages, show sender address instead of name in list 2024-03-05 09:04:59 +01:00
webmail.ts webmail: for junk/rejects messages, show sender address instead of name in list 2024-03-05 09:04:59 +01:00
webmail_test.go replace http basic auth for web interfaces with session cookie & csrf-based auth 2024-01-05 10:48:42 +01:00