incubator-ponymail
incubator-ponymail copied to clipboard
Issues with display of binary data in mails
One of the mails sent to the devnull@infra list erroneously includes some binary data. This has caused some display issues.
The message thread [1] shows the full mail, without any extraneous characters. However the source email is truncated at the start of the binary data [2]
Whilst the input mail should not have the binary data in it, it would be useful if the displayed data were consistent.
[1] https://lists.apache.org/thread.html/c97d286770de1370d6b89c16191336bbe4d81020186e5d2c2defe08d@%3Cdevnull.infra.apache.org%3E [2] https://lists.apache.org/api/source.lua/c97d286770de1370d6b89c16191336bbe4d81020186e5d2c2defe08d@%3Cdevnull.infra.apache.org%3E
It looks like the binary characters are dropped by Javascript.
Whereas LUA puts() seems to stop printing a string when it encounters a nul.
switching to r:write would fix that for source.lua
And presumably anywhere else where r:puts might be used on binary data, e.g. mbox.lua
new 66862d3 Enh: Ensure non-printable chars are not lost ...
Has this issue been addressed sufficiently? :)