expire-set.c revision bcb4e51a409d94ae670de96afb8483a4f7855294
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2006-2018 Dovecot authors, see the included COPYING file */
f6d57a2c182f63cd52819f0abb3c3d9f828afe19Timo Sirainenstruct expire_set *expire_set_init(const char *const *patterns)
f6d57a2c182f63cd52819f0abb3c3d9f828afe19Timo Sirainen const char *const *pattern;
f6d57a2c182f63cd52819f0abb3c3d9f828afe19Timo Sirainen pool = pool_alloconly_create("Expire pool", 512);
f6d57a2c182f63cd52819f0abb3c3d9f828afe19Timo Sirainen for (pattern = patterns; *pattern != NULL; pattern++) {
f6d57a2c182f63cd52819f0abb3c3d9f828afe19Timo Sirainen glob = imap_match_init(set->pool, *pattern, TRUE, '/');
f6d57a2c182f63cd52819f0abb3c3d9f828afe19Timo Sirainenvoid expire_set_deinit(struct expire_set **_set)
f6d57a2c182f63cd52819f0abb3c3d9f828afe19Timo Sirainenbool expire_set_lookup(struct expire_set *set, const char *mailbox)