mox/message
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
..
addr.go recognize more charsets than utf-8/iso-8859-1/us-ascii when parsing message headers with address 2024-08-22 17:36:49 +02:00
addr_test.go recognize more charsets than utf-8/iso-8859-1/us-ascii when parsing message headers with address 2024-08-22 17:36:49 +02:00
authresults.go fix parsing Authentication-Results header with a "reason=..." part 2024-06-28 10:39:46 +02:00
authresults_test.go fix parsing Authentication-Results header with a "reason=..." part 2024-06-28 10:39:46 +02:00
compose.go add a webapi and webhooks for a simple http/json-based api 2024-04-15 21:49:02 +02:00
decode.go expose fewer internals in packages, for easier software reuse 2023-12-14 15:39:36 +01:00
decode_test.go expose fewer internals in packages, for easier software reuse 2023-12-14 15:39:36 +01:00
doc.go mox! 2023-01-30 14:27:06 +01:00
examples_test.go use shorter smtp.NewAddress() instead of smtp.Address{...} 2024-05-09 21:26:22 +02:00
from.go use shorter smtp.NewAddress() instead of smtp.Address{...} 2024-05-09 21:26:22 +02:00
hdrcmtdomain.go add webmail 2023-08-07 21:57:03 +02:00
headerwriter.go add more details to x-mox-reason message header added during delivery, for understanding why a message is accepted/rejected 2024-10-04 16:01:30 +02:00
messageid.go expose fewer internals in packages, for easier software reuse 2023-12-14 15:39:36 +01:00
messageid_test.go implement message threading in backend and webmail 2023-09-13 15:44:57 +02:00
parseheaderfields.go add more documentation, examples with tests to illustrate reusable components 2023-12-14 20:20:17 +01:00
parseheaderfields_test.go implement message threading in backend and webmail 2023-09-13 15:44:57 +02:00
part.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
part_test.go recognize more charsets than utf-8/iso-8859-1/us-ascii when parsing message headers with address 2024-08-22 17:36:49 +02:00
qp.go add more documentation, examples with tests to illustrate reusable components 2023-12-14 20:20:17 +01:00
readheaders.go mox! 2023-01-30 14:27:06 +01:00
referencedids.go implement message threading in backend and webmail 2023-09-13 15:44:57 +02:00
referencedids_test.go switch to slog.Logger for logging, for easier reuse of packages by external software 2023-12-14 13:45:52 +01:00
threadsubject.go add more documentation, examples with tests to illustrate reusable components 2023-12-14 20:20:17 +01:00
threadsubject_test.go implement message threading in backend and webmail 2023-09-13 15:44:57 +02:00
time.go tweak time format for added date headers 2023-06-04 21:04:10 +02:00
todo.go mox! 2023-01-30 14:27:06 +01:00
writer.go fix: don't insert spurious \r when fixing up crlf line endings when writing a message 2024-02-08 12:33:19 +01:00
writer_test.go fix: don't insert spurious \r when fixing up crlf line endings when writing a message 2024-02-08 12:33:19 +01:00