summaryrefslogtreecommitdiffstats
path: root/src/lib-storage/mailbox-match-plugin.h
blob: c6dbfe9c2286b6be4b0657942fdb2ed0b0cef129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef MAILBOX_MATCH_PLUGIN_H
#define MAILBOX_MATCH_PLUGIN_H

struct mailbox;

/* Utility library to allow a Dovecot plugin an easy way to configure a list
   of mailbox patterns and special-use flags that can be matched against. */

struct mailbox_match_plugin *
mailbox_match_plugin_init(struct mail_user *user, const char *set_prefix);
void mailbox_match_plugin_deinit(struct mailbox_match_plugin **match);

bool mailbox_match_plugin_exclude(struct mailbox_match_plugin *match,
				  struct mailbox *box);

#endif