Mercurial > dovecot > core-2.2
changeset 886:3a4f468a53c6 HEAD
Handle LIST A B same way as LIST "" A.B
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 02 Jan 2003 13:50:53 +0200 |
parents | 1b3c679d2c6d |
children | 06776a31f50c |
files | src/imap/cmd-list.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/cmd-list.c Thu Jan 02 13:29:24 2003 +0200 +++ b/src/imap/cmd-list.c Thu Jan 02 13:50:53 2003 +0200 @@ -157,7 +157,13 @@ /* LIST A. .B -> A.B */ pattern++; } - pattern = t_strconcat(ref, pattern, NULL); + if (*pattern != sep_chr && + ref[strlen(ref)-1] != sep_chr) { + /* LIST A B -> A.B */ + pattern = t_strconcat(ref, sep, pattern, NULL); + } else { + pattern = t_strconcat(ref, pattern, NULL); + } } ctx.pool = pool_alloconly_create("ListContext", 10240);