c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen#ifndef MAILBOX_LIST_FS_H
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen#define MAILBOX_LIST_FS_H
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen#include "mailbox-list-private.h"
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen
61b0637759146621cbb7edcbd0b03a71cfd66dfeTimo Sirainen/* When doing deletion via renaming it first to trash directory, use this as
61b0637759146621cbb7edcbd0b03a71cfd66dfeTimo Sirainen the trash directory name */
61b0637759146621cbb7edcbd0b03a71cfd66dfeTimo Sirainen#define MAILBOX_LIST_FS_TRASH_DIR_NAME "..DOVECOT-TrasH"
61b0637759146621cbb7edcbd0b03a71cfd66dfeTimo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenstruct fs_mailbox_list {
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen struct mailbox_list list;
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen const char *temp_prefix;
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen};
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenstruct mailbox_list_iterate_context *
d92f33f13830ba23d814342bf3ea8db721a15bb1Timo Sirainenfs_list_iter_init(struct mailbox_list *_list, const char *const *patterns,
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen enum mailbox_list_iter_flags flags);
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenint fs_list_iter_deinit(struct mailbox_list_iterate_context *ctx);
61e84692827b6a64912343f515c984853021483aTimo Sirainenconst struct mailbox_info *
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenfs_list_iter_next(struct mailbox_list_iterate_context *ctx);
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen
dca6d617a23e3f93af3b8df59acb46478179fe55Timo Sirainenint fs_list_get_mailbox_flags(struct mailbox_list *list,
dca6d617a23e3f93af3b8df59acb46478179fe55Timo Sirainen const char *dir, const char *fname,
dca6d617a23e3f93af3b8df59acb46478179fe55Timo Sirainen enum mailbox_list_file_type type,
dca6d617a23e3f93af3b8df59acb46478179fe55Timo Sirainen enum mailbox_info_flags *flags);
dca6d617a23e3f93af3b8df59acb46478179fe55Timo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen#endif