dovecot-2.1: lib-storage: Thread iteration no longer returns dum...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jan 28 20:21:16 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/67972d72b55c
changeset: 14023:67972d72b55c
user: Timo Sirainen <tss at iki.fi>
date: Sat Jan 28 20:21:10 2012 +0200
description:
lib-storage: Thread iteration no longer returns dummy nodes without children.
This fixes returning (0) nodes to IMAP client.
diffstat:
src/lib-storage/index/index-thread-finish.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 9b8657a98e2e -r 67972d72b55c src/lib-storage/index/index-thread-finish.c
--- a/src/lib-storage/index/index-thread-finish.c Sat Jan 28 20:08:40 2012 +0200
+++ b/src/lib-storage/index/index-thread-finish.c Sat Jan 28 20:21:10 2012 +0200
@@ -655,6 +655,11 @@
*child_iter_r = shadow->first_child_idx == 0 ? NULL :
mail_thread_iterate_children(iter, child->idx);
}
+ if (child->uid == 0 && *child_iter_r == NULL) {
+ /* this is a dummy node without children,
+ there's no point in returning it */
+ return mail_thread_iterate_next(iter, child_iter_r);
+ }
return child;
}
More information about the dovecot-cvs
mailing list