dovecot: INBOX in "inbox/%" style pattern wasn't compared case-i...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jul 15 09:25:16 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/f0165a8b4323
changeset: 6012:f0165a8b4323
user: Timo Sirainen <tss at iki.fi>
date: Sun Jul 15 09:19:10 2007 +0300
description:
INBOX in "inbox/%" style pattern wasn't compared case-insensitively.
diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
src/lib-imap/imap-match.c | 6 ++++--
diffs (16 lines):
diff -r 91c229e00772 -r f0165a8b4323 src/lib-imap/imap-match.c
--- a/src/lib-imap/imap-match.c Sun Jul 15 07:20:29 2007 +0300
+++ b/src/lib-imap/imap-match.c Sun Jul 15 09:19:10 2007 +0300
@@ -82,8 +82,10 @@ static bool pattern_is_inboxcase(const c
while (*inboxp == i_toupper(*p) && *p != '\0') {
inboxp++; p++;
}
- if (*p != '%')
- return *p == '*' || (*inboxp == '\0' && *p == '\0');
+ if (*p != '%') {
+ return *p == '*' || *p == separator ||
+ (*inboxp == '\0' && *p == '\0');
+ }
/* handle 'I%B%X' style checks */
for (; *p != '\0' && *p != '*' && *p != separator; p++) {
More information about the dovecot-cvs
mailing list