mox/webmail
Mechiel Lukkien 1e15a10b66
webmail: fix js error rerendering additional headers after updated keywords
i've seen the error a few times:

	msgheaderElem.children[(msgheaderElem.children.length - 1)] is undefined

i've seen it happen after sending a reply (with the "answered" flag added).
the updateKeywords callback would render the message again, but the code for
rendering the "additional headers" table rows again was making invalid
assumptions.

the approach is now changed. the backend now just immediately sends the
additional headers to the frontend. before, the frontend would first render the
base message, then render again once the headers came in for the parsed
message. this also prevents a reflow for the (quite common) case that one of
the additional headers are present in the message.
2025-01-13 14:53:43 +01:00
..
api.go add Content-Disposition and Filename to the payload of incoming webhooks 2024-12-06 14:19:39 +01:00
api.json webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01:00
api.ts webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01: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 switch to math/rand/v2 in most places 2024-11-29 13:45:19 +01:00
lib.ts webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01:00
message.go webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01:00
message_test.go webmail: recognize multiple urls in List-Post addresses 2024-04-16 20:26:37 +02:00
msg.html add ability to include custom css & js in web interface (webmail, webaccount, webadmin), and use css variables in webmail for easier customization 2024-11-29 10:17:07 +01:00
msg.js webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01:00
msg.ts webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01:00
text.html add ability to include custom css & js in web interface (webmail, webaccount, webadmin), and use css variables in webmail for easier customization 2024-11-29 10:17:07 +01:00
text.js webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01:00
text.ts add ability to include custom css & js in web interface (webmail, webaccount, webadmin), and use css variables in webmail for easier customization 2024-11-29 10:17:07 +01:00
view.go webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01: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 webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01:00
webmail.html add ability to include custom css & js in web interface (webmail, webaccount, webadmin), and use css variables in webmail for easier customization 2024-11-29 10:17:07 +01:00
webmail.js webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01:00
webmail.ts webmail: fix js error rerendering additional headers after updated keywords 2025-01-13 14:53:43 +01:00
webmail_test.go webmail: add export functionality 2024-04-22 13:41:40 +02:00