diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
commit | 0441d265f2bb9da249c7abf333f0f771fadb4ab5 (patch) | |
tree | 3f3789daa2f6db22da6e55e92bee0062a7d613fe /src/lib-storage/list/mailbox-list-maildir.h | |
parent | Initial commit. (diff) | |
download | dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.tar.xz dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.zip |
Adding upstream version 1:2.3.21+dfsg1.upstream/1%2.3.21+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/lib-storage/list/mailbox-list-maildir.h')
-rw-r--r-- | src/lib-storage/list/mailbox-list-maildir.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib-storage/list/mailbox-list-maildir.h b/src/lib-storage/list/mailbox-list-maildir.h new file mode 100644 index 0000000..3760378 --- /dev/null +++ b/src/lib-storage/list/mailbox-list-maildir.h @@ -0,0 +1,29 @@ +#ifndef MAILBOX_LIST_MAILDIR_H +#define MAILBOX_LIST_MAILDIR_H + +#include "mailbox-list-private.h" + +/* When doing deletion via renaming it first to trash directory, use this as + the trash directory name */ +#define MAILBOX_LIST_MAILDIR_TRASH_DIR_NAME "DOVECOT-TRASHED" + +struct maildir_mailbox_list { + struct mailbox_list list; + + const char *global_temp_prefix, *temp_prefix; + char sep; +}; + +struct mailbox_list_iterate_context * +maildir_list_iter_init(struct mailbox_list *_list, const char *const *patterns, + enum mailbox_list_iter_flags flags); +int maildir_list_iter_deinit(struct mailbox_list_iterate_context *ctx); +const struct mailbox_info * +maildir_list_iter_next(struct mailbox_list_iterate_context *ctx); + +int maildir_list_get_mailbox_flags(struct mailbox_list *list, + const char *dir, const char *fname, + enum mailbox_list_file_type type, + enum mailbox_info_flags *flags); + +#endif |