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 (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)]
Flags permitted.
* 2 EXISTS
* 0 RECENT
* OK [UNSEEN 1] First unseen.
* OK [UIDVALIDITY 1430938009] UIDs valid
* OK [UIDNEXT 3] Predicted next UID
* OK [HIGHESTMODSEQ 1] Highest
a OK [READ-WRITE] Select completed (0.003 secs).
a01 SEARCH CHARSET UTF-8 SUBJECT "ibiza"
* SEARCH 1 2
a01 OK Search completed (0.002 secs).
a02 SEARCH CHARSET US-ASCII SUBJECT "ibiza"
* SEARCH 1 2
a02 OK Search completed (0.000 secs).
a01 SEARCH CHARSET UTF-8 SUBJECT "Auftragsbest"
* SEARCH 2
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).
_______________________________________________
Roundcube Development discussion mailing list
dev@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/dev

Reply via email to