dovecot-2.1: doveadm: Removed unnecessary code.

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 12 02:30:48 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/53cf118fd16c
changeset: 14111:53cf118fd16c
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 12 02:30:34 2012 +0200
description:
doveadm: Removed unnecessary code.
"mailbox/" is no longer included in listing by default.

diffstat:

 src/doveadm/doveadm-mail-list-iter.c |  7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diffs (24 lines):

diff -r fffa4d53e901 -r 53cf118fd16c src/doveadm/doveadm-mail-list-iter.c
--- a/src/doveadm/doveadm-mail-list-iter.c	Sun Feb 12 02:22:43 2012 +0200
+++ b/src/doveadm/doveadm-mail-list-iter.c	Sun Feb 12 02:30:34 2012 +0200
@@ -132,7 +132,6 @@
 doveadm_mail_list_iter_next(struct doveadm_mail_list_iter *iter)
 {
 	const struct mailbox_info *info;
-	unsigned int len;
 
 	while ((info = mailbox_list_iter_next(iter->iter)) != NULL) {
 		char sep = mail_namespace_get_sep(info->ns);
@@ -142,12 +141,6 @@
 			if (iter->only_selectable)
 				continue;
 		}
-		len = strlen(info->name);
-		if (len > 0 &&
-		    info->name[len-1] == sep) {
-			/* when listing "foo/%" it lists "foo/". skip it. */
-			continue;
-		}
 
 		if (mail_search_args_match_mailbox(iter->search_args,
 						   info->name, sep))


More information about the dovecot-cvs mailing list