/dovecot/src/lib-imap/ |
H A D | test-imap-match.c | 51 struct imap_match_glob *glob, *glob2; local 60 glob = imap_match_init(pool, test[i].pattern, 62 test_assert(imap_match(glob, test[i].input) == test[i].result); 64 glob2 = imap_match_dup(default_pool, glob); 65 test_assert(imap_match_globs_equal(glob, glob2)); 75 glob = imap_match_init(pool, inbox_test[i].pattern, 77 test_assert(imap_match(glob, inbox_test[i].input) == inbox_test[i].result); 79 glob2 = imap_match_dup(default_pool, glob); 80 test_assert(imap_match_globs_equal(glob, glob2)); 93 struct imap_match_glob *glob; local [all...] |
H A D | imap-match.h | 30 void imap_match_deinit(struct imap_match_glob **glob); 33 imap_match_dup(pool_t pool, const struct imap_match_glob *glob); 40 imap_match(struct imap_match_glob *glob, const char *data);
|
H A D | imap-match.c | 115 struct imap_match_glob *glob; local 136 glob = p_malloc(pool, sizeof(struct imap_match_glob) + 138 glob->pool = pool; 139 glob->sep = separator; 147 memcpy(glob->patterns_data + pos, 149 match_patterns[i].pattern = glob->patterns_data + pos; 152 glob->patterns = match_patterns; 153 return glob; 160 struct imap_match_glob *glob; local 167 glob 173 imap_match_deinit(struct imap_match_glob **glob) argument 183 imap_match_dup_real(pool_t pool, const struct imap_match_glob *glob) argument 201 imap_match_dup(pool_t pool, const struct imap_match_glob *glob) argument 363 imap_match(struct imap_match_glob *glob, const char *data) argument [all...] |
/dovecot/src/plugins/expire/ |
H A D | expire-set.c | 17 struct imap_match_glob *glob; local 27 glob = imap_match_init(set->pool, *pattern, TRUE, '/'); 28 array_append(&set->globs, &glob, 1);
|
H A D | doveadm-expire.c | 25 struct imap_match_glob *glob; member in struct:expire_query 62 if (query->glob == NULL) { 66 if (imap_match(query->glob, mailbox) == IMAP_MATCH_YES) 205 query.glob = imap_match_init(ctx->pool, arg->value.str, 243 query.glob = imap_match_init(ctx->pool, arg->value.str,
|
/dovecot/src/lib-storage/list/ |
H A D | mailbox-list-maildir-iter.c | 48 struct imap_match_glob *glob, bool update_only, 60 if (imap_match(glob, vname) != IMAP_MATCH_YES) 113 struct imap_match_glob *glob, const char *inbox_name, 142 match = imap_match(glob, inbox_name); 144 maildir_fill_parents(ctx, glob, FALSE, inbox_name); 268 struct imap_match_glob *glob, const struct dirent *d, 318 match = imap_match(glob, vname); 343 maildir_fill_parents(ctx, glob, update_only, vname); 369 struct imap_match_glob *glob, bool update_only) 393 ret = maildir_fill_readdir_entry(ctx, glob, 47 maildir_fill_parents(struct maildir_list_iterate_context *ctx, struct imap_match_glob *glob, bool update_only, const char *vname) argument 112 maildir_fill_inbox(struct maildir_list_iterate_context *ctx, struct imap_match_glob *glob, const char *inbox_name, bool update_only) argument 267 maildir_fill_readdir_entry(struct maildir_list_iterate_context *ctx, struct imap_match_glob *glob, const struct dirent *d, bool update_only) argument 368 maildir_fill_readdir(struct maildir_list_iterate_context *ctx, struct imap_match_glob *glob, bool update_only) argument [all...] |
H A D | mailbox-list-none.c | 111 ctx->ctx.glob = imap_match_init_multiple(pool, patterns, TRUE, 115 imap_match(ctx->ctx.glob, "INBOX") == IMAP_MATCH_YES) {
|
H A D | mailbox-list-iter.c | 244 struct imap_match_glob *glob; local 272 glob = imap_match_init(pool_datastack_create(), pattern, 274 result = imap_match(glob, prefix_without_sep); 307 struct imap_match_glob *glob; local 321 glob = imap_match_init(pool_datastack_create(), pattern, 323 result = imap_match(glob, prefix_without_sep); 711 struct imap_match_glob *glob; local 713 glob = imap_match_init_multiple(pool_datastack_create(), patterns, 715 return imap_match(glob, "INBOX") == IMAP_MATCH_YES; 947 match = imap_match(ctx->glob, act [all...] |
H A D | mailbox-list-subscriptions.c | 210 update_ctx.glob = ctx->glob; 239 ctx->ctx.glob = imap_match_init_multiple(pool, patterns, TRUE, sep);
|
H A D | mailbox-list-fs-iter.c | 183 match = imap_match(ctx->ctx.glob, vname); 186 /* The glob was matched only against "INBOX", but this 535 /* we've only invalid patterns (or INBOX). create a glob 536 anyway to avoid any crashes due to glob being accessed 538 ctx->ctx.glob = imap_match_init(pool, "", TRUE, ctx->sep); 541 ctx->ctx.glob = imap_match_init_multiple(pool, ctx->valid_patterns, 646 match = imap_match(ctx->ctx.glob, ctx->info.vname); 656 child_dir_match = imap_match(ctx->ctx.glob, child_dir_name); 781 if (imap_match(ctx->ctx.glob, ctx->info.vname) == IMAP_MATCH_YES) 784 if (!ctx->inbox_found && ctx->ctx.glob ! [all...] |
H A D | mailbox-list-index-iter.c | 55 ctx->ctx.glob = imap_match_init_multiple(pool, patterns, TRUE, ns_sep); 195 match = imap_match(_ctx->glob, ctx->info.vname);
|
/dovecot/src/plugins/notify-status/ |
H A D | notify-status-plugin.c | 76 struct imap_match_glob **glob; local 84 glob = array_append_space(patterns); 85 *glob = imap_match_init(user->pool, value, TRUE, sep); 93 struct imap_match_glob **glob; local 102 array_foreach_modifiable(&nuser->patterns, glob) { 103 if ((imap_match(*glob, mailbox_get_vname(box)) & IMAP_MATCH_YES) != 0)
|
/dovecot/src/lib-settings/ |
H A D | settings.c | 12 # include <glob.h> 136 switch (glob(pattern, GLOB_BRACE, NULL, &globbers)) { 140 *error_r = "glob() failed: Not enough memory"; 143 *error_r = "glob() failed: Read error"; 151 *error_r = "glob() failed: Unknown error";
|
/dovecot/src/lib-storage/ |
H A D | mailbox-list-private.h | 162 struct imap_match_glob *glob; member in struct:mailbox_list_iterate_context 173 struct imap_match_glob *glob; member in struct:mailbox_list_iter_update_context
|
H A D | mail-search.c | 562 struct imap_match_glob *glob; local 564 glob = imap_match_init(pool_datastack_create(), 566 ret = imap_match(glob, vname) == IMAP_MATCH_YES;
|
/dovecot/src/plugins/virtual/ |
H A D | virtual-config.c | 189 bbox->glob = imap_match_init(ctx->pool, bbox->name, TRUE, ctx->sep); 261 else if (bboxes[i]->glob != NULL) 286 bbox->glob = NULL; 323 if (boxes[i]->glob != NULL) { 325 imap_match(boxes[i]->glob,
|
H A D | virtual-storage.h | 101 /* name contains a wildcard, this is a glob for it */ 102 struct imap_match_glob *glob; member in struct:virtual_backend_box
|
/dovecot/src/plugins/acl/ |
H A D | acl-mailbox-list.c | 119 update_ctx.glob = 262 imap_match(_ctx->glob, child) == IMAP_MATCH_YES; 316 imap_match(_ctx->glob, info->vname) == IMAP_MATCH_YES) {
|
/dovecot/src/lib-storage/index/shared/ |
H A D | shared-list.c | 157 ctx->glob = imap_match_init_multiple(pool, patterns, FALSE, sep);
|
/dovecot/src/lib-storage/index/imapc/ |
H A D | imapc-list.c | 611 update_ctx.glob = ctx->ctx.glob; 659 ctx->ctx.glob = imap_match_init_multiple(pool, patterns, FALSE, ns_sep);
|
/dovecot/src/config/ |
H A D | config-parser.c | 24 # include <glob.h> 533 switch (glob(pattern, GLOB_BRACE, NULL, &globbers)) { 537 ctx->error = "glob() failed: Not enough memory"; 540 ctx->error = "glob() failed: Read error"; 548 ctx->error = "glob() failed: Unknown error";
|