yahoo / imapnio

Java imap nio client that is designed to scale well for thousands of connections per machine and reduce contention when using large number of threads and cpus.
57 stars 50 forks source link

Use the right charset while decoding response in imap nio client #126

Closed davis-thomas closed 2 years ago

davis-thomas commented 2 years ago

Description

When response from IMAP servers is decoded in IMAP NIO client, not the right character set is being used. This cause array index out of bound exceptions while parsing the IMAPResponse using default sun libraries. The fix is to use the right charset so the decoding responses is not lossy.

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist:

fansu commented 2 years ago

Could you also change parent pom.xml, core/pom.xml, README.md to be 5.0.2?