mox/webmail
Mechiel Lukkien ee1db2dde7
webmail: implement registering and handling "mailto:" links
to start composing a message.

the help popup now has a button to register the "mailto:" links with the mox
webmail (typically only works over https, not all browsers support it).

the mailto links are specified in 6068. we support the to/cc/bcc/subject/body
parameters. other parameters should be seen as custom headers, but we don't
support messages with custom headers at all at the moment, so we ignore them.

we now also turn text of the form "mailto:user@host" into a clickable link
(will not be too common). we could be recognizing any "x@x.x" as email address
and make them clickable in the future.

thanks to Hans-Jörg for explaining this functionality.
2024-02-09 11:21:33 +01:00
..
api.go webmail: implement registering and handling "mailto:" links 2024-02-09 11:21:33 +01:00
api.json webmail: implement registering and handling "mailto:" links 2024-02-09 11:21:33 +01:00
api.ts webmail: implement registering and handling "mailto:" links 2024-02-09 11:21:33 +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: implement registering and handling "mailto:" links 2024-02-09 11:21:33 +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: implement registering and handling "mailto:" links 2024-02-09 11:21:33 +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: implement registering and handling "mailto:" links 2024-02-09 11:21:33 +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: implement registering and handling "mailto:" links 2024-02-09 11:21:33 +01:00
webmail.ts webmail: implement registering and handling "mailto:" links 2024-02-09 11:21:33 +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