summaryrefslogtreecommitdiff
path: root/libproto/imap
diff options
context:
space:
mode:
Diffstat (limited to 'libproto/imap')
-rw-r--r--libproto/imap/folder.c4
-rw-r--r--libproto/imap/genlist.c12
-rw-r--r--libproto/imap/tests/imapfolder.c2
3 files changed, 9 insertions, 9 deletions
diff --git a/libproto/imap/folder.c b/libproto/imap/folder.c
index 5e4331292..9e23847b8 100644
--- a/libproto/imap/folder.c
+++ b/libproto/imap/folder.c
@@ -274,3 +274,3 @@ _mu_imap_folder_list (mu_folder_t folder, struct mu_folder_scanner *scn)
- if (scn->max_level
+ if (scn->max_depth
|| (scn->match_flags & MU_FOLDER_ATTRIBUTE_ALL) != MU_FOLDER_ATTRIBUTE_ALL)
@@ -294,3 +294,3 @@ _mu_imap_folder_list (mu_folder_t folder, struct mu_folder_scanner *scn)
if (!(rp->type & scn->match_flags)
- || (scn->max_level && rp->level > scn->max_level))
+ || (scn->max_depth && rp->depth > scn->max_depth))
mu_iterator_ctl (itr, mu_itrctl_delete, NULL);
diff --git a/libproto/imap/genlist.c b/libproto/imap/genlist.c
index 1e2de88d8..13352b6bb 100644
--- a/libproto/imap/genlist.c
+++ b/libproto/imap/genlist.c
@@ -39,5 +39,5 @@ struct list_closure
static int
-count_level (const char *name, int delim)
+count_depth (const char *name, int delim)
{
- int level = 0;
+ int depth = 0;
@@ -45,4 +45,4 @@ count_level (const char *name, int delim)
if (*name++ == delim)
- level++;
- return level;
+ depth++;
+ return depth;
}
@@ -111,3 +111,3 @@ list_untagged_handler (mu_imap_t imap, mu_list_t resp, void *data)
rp->separator = 0;
- rp->level = 0;
+ rp->depth = 0;
}
@@ -118,3 +118,3 @@ list_untagged_handler (mu_imap_t imap, mu_list_t resp, void *data)
rp->separator = elt->v.string[0];
- rp->level = count_level (rp->name, rp->separator);
+ rp->depth = count_depth (rp->name, rp->separator);
}
diff --git a/libproto/imap/tests/imapfolder.c b/libproto/imap/tests/imapfolder.c
index 8d3f6ce44..2de850622 100644
--- a/libproto/imap/tests/imapfolder.c
+++ b/libproto/imap/tests/imapfolder.c
@@ -39,3 +39,3 @@ _print_list_entry (void *item, void *data)
resp->separator ? resp->separator : ' ',
- resp->level,
+ resp->depth,
resp->name);

Return to:

Send suggestions and report system problems to the System administrator.