thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

IMAP search with non-ASCII characters fails

Open GLingDroid opened this issue 7 years ago • 5 comments

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

GLingDroid avatar Sep 10 '18 07:09 GLingDroid

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

cketti avatar Sep 10 '18 13:09 cketti

So it's on the roadmap?

GLingDroid avatar Sep 11 '18 14:09 GLingDroid

BUG confirmed with latests version (5.806). Cannot search mails using latin chars (eg: "García").

kripper avatar Sep 28 '21 11:09 kripper

Hi

I submitted a similar comment in an older bug, this is for Nordic symbols. See link. https://github.com/k9mail/k-9/issues/1140#issuecomment-1140369400

K9 version: 6.000 Android 11 Account type (IMAP/Exchange)

I can add that the phone and keyboard is set to US/English but one can still input funky characters (as one can receive emails containing them), so checking the system locale setting or the like won't help.

floridop avatar May 29 '22 03:05 floridop

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.

cketti avatar May 30 '22 19:05 cketti