Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMAP search with non-ASCII characters fails #3607

Open
GLingDroid opened this issue Sep 10, 2018 · 5 comments
Open

IMAP search with non-ASCII characters fails #3607

GLingDroid opened this issue Sep 10, 2018 · 5 comments
Labels
type: bug Something is causing incorrect behavior or errors

Comments

@GLingDroid
Copy link

Expected behavior

It should return emails that contain the keyword in the mail title.

Actual behavior

It say 'search fails' and return nothing which the one exists on the server.

Steps to reproduce

1.check enable 'server-side search' in the account settings.
2.search like using chinese character '你好'.
3.hint the button of search on server.
4.it tells 'search fails'.

But it's ok when you use english character like 'hello', it performs as indeed.
I think it's related to character code(ISO... ), like utf-8,GB18030,utf-16...

Environment

K-9 Mail version:5.600

Android version:7.1.2

Account type (IMAP, POP3, WebDAV/Exchange):IMAP,gmail

@cketti cketti added the type: bug Something is causing incorrect behavior or errors label Sep 10, 2018
@cketti
Copy link
Member

cketti commented Sep 10, 2018

We need to use the CHARSET argument when using IMAP's SEARCH command. See https://tools.ietf.org/html/rfc3501#section-6.4.4

@GLingDroid

This comment has been minimized.

@cketti cketti changed the title Server-side search fails when using search keyword of chinese character, but ok with english character. IMAP search with non-ASCII characters fails Oct 6, 2020
@kripper

This comment was marked as off-topic.

@floridop

This comment was marked as off-topic.

@cketti
Copy link
Member

cketti commented May 30, 2022

Please note that there's no need to provide specific examples where search also fails. This problem happens when any non-ASCII character is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something is causing incorrect behavior or errors
Projects
None yet
Development

No branches or pull requests

4 participants