incubator-ponymail icon indicating copy to clipboard operation
incubator-ponymail copied to clipboard

Issues with display of binary data in mails

Open sebbASF opened this issue 7 years ago • 5 comments

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

sebbASF avatar Oct 08 '18 23:10 sebbASF

It looks like the binary characters are dropped by Javascript.

Whereas LUA puts() seems to stop printing a string when it encounters a nul.

sebbASF avatar Oct 09 '18 17:10 sebbASF

switching to r:write would fix that for source.lua

Humbedooh avatar Oct 09 '18 17:10 Humbedooh

And presumably anywhere else where r:puts might be used on binary data, e.g. mbox.lua

sebbASF avatar Oct 09 '18 17:10 sebbASF

new 66862d3 Enh: Ensure non-printable chars are not lost ...

sebbASF avatar Oct 09 '18 17:10 sebbASF

Has this issue been addressed sufficiently? :)

Humbedooh avatar Apr 25 '19 16:04 Humbedooh