c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen#ifndef MAILBOX_LIST_MAILDIR_H
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen#define MAILBOX_LIST_MAILDIR_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_MAILDIR_TRASH_DIR_NAME "DOVECOT-TRASHED"
61b0637759146621cbb7edcbd0b03a71cfd66dfeTimo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenstruct maildir_mailbox_list {
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen struct mailbox_list list;
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen
c040ee67d0ac0fb7375bb543965bf67dcae6affaTimo Sirainen const char *global_temp_prefix, *temp_prefix;
c0a87e5f3316a57e6f915882fa1951d0fbb74a61Timo Sirainen char sep;
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen};
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenstruct mailbox_list_iterate_context *
d92f33f13830ba23d814342bf3ea8db721a15bb1Timo Sirainenmaildir_list_iter_init(struct mailbox_list *_list, const char *const *patterns,
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen enum mailbox_list_iter_flags flags);
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenint maildir_list_iter_deinit(struct mailbox_list_iterate_context *ctx);
61e84692827b6a64912343f515c984853021483aTimo Sirainenconst struct mailbox_info *
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainenmaildir_list_iter_next(struct mailbox_list_iterate_context *ctx);
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3Timo Sirainen
dca6d617a23e3f93af3b8df59acb46478179fe55Timo Sirainenint maildir_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