diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/doveadm/doveadm-mailbox-list-iter.h | |
parent | Initial commit. (diff) | |
download | dovecot-upstream.tar.xz dovecot-upstream.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/doveadm/doveadm-mailbox-list-iter.h')
-rw-r--r-- | src/doveadm/doveadm-mailbox-list-iter.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/doveadm/doveadm-mailbox-list-iter.h b/src/doveadm/doveadm-mailbox-list-iter.h new file mode 100644 index 0000000..9b205e2 --- /dev/null +++ b/src/doveadm/doveadm-mailbox-list-iter.h @@ -0,0 +1,25 @@ +#ifndef DOVEADM_MAILBOX_LIST_ITER_H +#define DOVEADM_MAILBOX_LIST_ITER_H + +#include "mailbox-list-iter.h" + +struct doveadm_mail_cmd_context; + +/* List only selectable mailboxes */ +struct doveadm_mailbox_list_iter * +doveadm_mailbox_list_iter_init(struct doveadm_mail_cmd_context *ctx, + struct mail_user *user, + struct mail_search_args *search_args, + enum mailbox_list_iter_flags iter_flags); +/* List all mailboxes */ +struct doveadm_mailbox_list_iter * +doveadm_mailbox_list_iter_full_init(struct doveadm_mail_cmd_context *ctx, + struct mail_user *user, + struct mail_search_args *search_args, + enum mailbox_list_iter_flags iter_flags); +int doveadm_mailbox_list_iter_deinit(struct doveadm_mailbox_list_iter **iter); + +const struct mailbox_info * +doveadm_mailbox_list_iter_next(struct doveadm_mailbox_list_iter *iter); + +#endif |