mox/vendor/golang.org/x/text/encoding
Mechiel Lukkien 01adad62b2
implement decoding charsets (other than ascii and utf-8) while reading textual message parts, and improve search
message.Part now has a ReaderUTF8OrBinary() along with the existing Reader().
the new function returns a reader of decoded content. we now use it in a few
places, including search. we only support the charsets in
golang.org/x/text/encoding/ianaindex.

search has also been changed to not read the entire message in memory. instead,
we make one 8k buffer for reading and search in that, and we keep the buffer
around for all messages. saves quite some allocations when searching large
mailboxes.
2023-07-28 22:15:23 +02:00
..
charmap implement decoding charsets (other than ascii and utf-8) while reading textual message parts, and improve search 2023-07-28 22:15:23 +02:00
ianaindex implement decoding charsets (other than ascii and utf-8) while reading textual message parts, and improve search 2023-07-28 22:15:23 +02:00
internal implement decoding charsets (other than ascii and utf-8) while reading textual message parts, and improve search 2023-07-28 22:15:23 +02:00
japanese implement decoding charsets (other than ascii and utf-8) while reading textual message parts, and improve search 2023-07-28 22:15:23 +02:00
korean implement decoding charsets (other than ascii and utf-8) while reading textual message parts, and improve search 2023-07-28 22:15:23 +02:00
simplifiedchinese implement decoding charsets (other than ascii and utf-8) while reading textual message parts, and improve search 2023-07-28 22:15:23 +02:00
traditionalchinese implement decoding charsets (other than ascii and utf-8) while reading textual message parts, and improve search 2023-07-28 22:15:23 +02:00
unicode implement decoding charsets (other than ascii and utf-8) while reading textual message parts, and improve search 2023-07-28 22:15:23 +02:00
encoding.go implement decoding charsets (other than ascii and utf-8) while reading textual message parts, and improve search 2023-07-28 22:15:23 +02:00