On 16-06-07 10:27 PM, A.L.E.C wrote:
On 06/08/2016 02:07 AM, Michael Heydekamp wrote:
Indeed, those messages DO contain the string "Ibiza" in the body, but I didn't ask for a search in the subject AND the body.
These may be IMAP server issues. Enable imap_debug to see what is the query and what is the result.
to elaborate on what alec said, roundcube uses the imap SEARCH command to find messages - perhaps your imap server isn't searching in UTF7IMAP encoded strings correctly (or at all).
i have a folder here with two messages (with subjects matching yours, including a wrapped line for the subject):
Maildir/.myfolder/cur% zgrep -A1 Subject * 1465399407.P44335Q0M64750.smtpin01,S=34512,W=35061:2,:Subject: ibiza party time 1465399407.P44335Q0M64750.smtpin01,S=34512,W=35061:2,:X-Spamscore: 0 1465399409.P45445Q0M30546.smtpin01,S=15699,W=15955:2,:Subject: =?UTF-8?Q?Auftragsbest=C3=A4tigung_D=C3=BCsseldorf-Valencia-Ibiz?= 1465399409.P45445Q0M30546.smtpin01,S=15699,W=15955:2,: =?UTF-8?Q?a_12JUN16?=
and the imap server returns both of them in response to a search (with either UTF-8 or ASCII):
a select myfolder
Flags permitted.
a OK [READ-WRITE] Select completed (0.003 secs). a01 SEARCH CHARSET UTF-8 SUBJECT "ibiza"
a01 OK Search completed (0.002 secs). a02 SEARCH CHARSET US-ASCII SUBJECT "ibiza"
a02 OK Search completed (0.000 secs). a01 SEARCH CHARSET UTF-8 SUBJECT "Auftragsbest"
a01 OK Search completed (0.000 secs).
if your imap server doesn't support searching in utf7imap encoded strings, it'd pretty hard for roundcube to work around that, considering that there are a huge number of ways that string could have been encoded (depending on the charset it was encoded from). roundcube would need to issue an imap search for every possibility, which isn't reasonable (and would be incredibly slow, even if it were done).