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
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
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Major release (change is NOT backward compatible with prior release)
Checklist:
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
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: