jakartaee / jakartaee/mail-api

Gmail fails to search for Japanese words.

Open
#526 1 comment 0 reactions 0 assignees Claimed by @jmehrens View on GitHub
Dominant language
Java
Stars
285
Forks
109
Avg merge
15h 19m
Merged PRs (30d)
1

Description

If you search for a string containing Japanese characters, the following exception will occur and the search will fail.

version 1.6.2

BX33 SEARCH UNDELETED OR OR OR OR OR FROM "i??i??A ̄" TO "i??i??A ̄" CC "i??i??A ̄" BCC "i??i??A ̄" SUBJECT "i??i??A ̄" BODY "i??i??A ̄" ALL

Caused by: com.sun.mail.iap.BadCommandException: E4 BAD Could not parse command
at com.sun.mail.iap.Protocol.handleResult(Protocol.java:439)
at com.sun.mail.imap.protocol.IMAPProtocol.issueSearch(IMAPProtocol.java:2596)
at com.sun.mail.imap.protocol.IMAPProtocol.search(IMAPProtocol.java:2501)
at com.sun.mail.imap.protocol.IMAPProtocol.search(IMAPProtocol.java:2486)
at com.sun.mail.imap.IMAPFolder.search(IMAPFolder.java:2375)

Contributor guide

Open the contributing guide

Research direction

An open pull request (#131) is already linked, so review that work first. Start from the IMAPFolder.search and IMAPProtocol.search stack-trace entry points and reproduce the Japanese-character search against the reported version. Done means Gmail accepts the generated search and the exception no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.