mox/message
Mechiel Lukkien ecf60568b4
fix: don't insert spurious \r when fixing up crlf line endings when writing a message
message.Writer.Write() adds missing \r's, but the buffer of "last bytes
written" was only being updated while writing the message headers, not while
writing the body. so for Write()'s in the body section (depending on
buffering), we were compensating based on the "last bytes written" as set
during the last write in the header section. that could cause a spurious \r to
be added when a Write starts with \n while the previous Write did properly
end with \r.

for issue #117, thanks haraldrudell for reporting and investigating
2024-02-08 12:33:19 +01:00
..
authresults.go when generating Authentication-Results, put each method on a new line for better readability 2023-12-14 20:20:17 +01:00
authresults_test.go when generating Authentication-Results, put each method on a new line for better readability 2023-12-14 20:20:17 +01:00
compose.go change the message composing code from webmail over to message.Composer too 2023-11-09 21:15:27 +01: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 add more documentation, examples with tests to illustrate reusable components 2023-12-14 20:20:17 +01:00
from.go switch to slog.Logger for logging, for easier reuse of packages by external software 2023-12-14 13:45:52 +01:00
hdrcmtdomain.go add webmail 2023-08-07 21:57:03 +02:00
headerwriter.go when generating Authentication-Results, put each method on a new line for better readability 2023-12-14 20:20:17 +01: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 add more documentation, examples with tests to illustrate reusable components 2023-12-14 20:20:17 +01:00
part_test.go expose fewer internals in packages, for easier software reuse 2023-12-14 15:39:36 +01: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