mox/webmail
Mechiel Lukkien fb65ec0676
webmail: fix loading a "view" (messages in a mailbox) when the "initial" message cannot be parsed
when we send a list of messages from the mox backend to the js frontend, we
include a parsed form of the "initial" message: the one we immediately show,
typically the top-most (unread) message. however, if that message could not be
parsed (due to invalid header syntax), we would fail the entire operation of
loading the view.

with this change, we simply don't return a parsed form of an initial message if
we cannot parse it. that will cause the webmail frontend to not select &
display a message immediately. if you then try to open the message, you'll
still get an error message as before. but at least the view has been loaded,
and you can open the raw message to inspect the contents.

for issue #219 by wneessen
2024-10-05 09:50:40 +02:00
..
api.go webmail: fix displaying a message in separate window if there was no known viewmode (text or html or html with externals) 2024-10-04 16:37:32 +02:00
api.json webmail: rename query string param "token" to "singleUseToken" to be less scary in access logs 2024-08-23 15:08:27 +02:00
api.ts webmail: rename query string param "token" to "singleUseToken" to be less scary in access logs 2024-08-23 15:08:27 +02:00
api_test.go webmail: add setting to show html version of a message by default, instead of text version 2024-08-23 14:02:55 +02: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: ensure white background when viewing attachments, for the black text of plain text attachments 2024-06-10 20:11:26 +02:00
message.go webmail: fix loading a "view" (messages in a mailbox) when the "initial" message cannot be parsed 2024-10-05 09:50:40 +02:00
message_test.go webmail: recognize multiple urls in List-Post addresses 2024-04-16 20:26:37 +02:00
msg.html don't prevent the html pages to load a favicon, and provide one by default 2024-07-08 21:58:10 +02:00
msg.js get rid of some more gnulinuxisms 2024-09-14 20:53:21 +02:00
msg.ts webmail: when opening message in new tab, set document title to subject, message from address(es) and id of message 2024-05-09 21:19:58 +02:00
text.html don't prevent the html pages to load a favicon, and provide one by default 2024-07-08 21:58:10 +02:00
text.js get rid of some more gnulinuxisms 2024-09-14 20:53:21 +02:00
text.ts webmail: change many inline styles to using css classes, and add dark mode 2024-05-06 09:13:50 +02:00
view.go webmail: fix loading a "view" (messages in a mailbox) when the "initial" message cannot be parsed 2024-10-05 09:50:40 +02:00
view_test.go webmail: rename query string param "token" to "singleUseToken" to be less scary in access logs 2024-08-23 15:08:27 +02:00
webmail.go add subcommand that prints licenses, and link to licenses from the webadmin/webaccount/webmail interfaces 2024-10-04 09:31:31 +02:00
webmail.html don't prevent the html pages to load a favicon, and provide one by default 2024-07-08 21:58:10 +02:00
webmail.js add subcommand that prints licenses, and link to licenses from the webadmin/webaccount/webmail interfaces 2024-10-04 09:31:31 +02:00
webmail.ts add subcommand that prints licenses, and link to licenses from the webadmin/webaccount/webmail interfaces 2024-10-04 09:31:31 +02:00
webmail_test.go webmail: add export functionality 2024-04-22 13:41:40 +02:00