Skip to content

Wrong charset used in creating search terms when server supports UTF8 #474

Description

@axandar

Describe the bug
Function int[] search(String msgSequence, SearchTerm term) throws ProtocolException, SearchException on line 2479 in IMAPProtocol class checks if server support UTF8.
In function private int[] issueSearch(String msgSequence, SearchTerm term, String charset) throws ProtocolException, SearchException, IOException on line 2532 Argument object is created with charset as null.

When null is passed to SearchSequence#generateSequence() it defaults to all ASCII text while parsing strings in seach terms.

I don't know if reproduction is needed here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions