Lines Matching defs:glob
115 struct imap_match_glob *glob;
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;
167 glob = imap_match_init_multiple_real(pool, patterns,
170 return glob;
173 void imap_match_deinit(struct imap_match_glob **glob)
175 if (glob == NULL || *glob == NULL)
177 p_free((*glob)->pool, (*glob)->patterns);
178 p_free((*glob)->pool, *glob);
179 *glob = NULL;
183 imap_match_dup_real(pool_t pool, const struct imap_match_glob *glob)
190 for (p = glob->patterns; p->pattern != NULL; p++) {
197 inboxcase, glob->sep);
201 imap_match_dup(pool_t pool, const struct imap_match_glob *glob)
206 return imap_match_dup_real(pool, glob);
209 new_glob = imap_match_dup_real(pool, glob);
363 imap_match(struct imap_match_glob *glob, const char *data)
370 ctx.sep = glob->sep;
371 for (i = 0; glob->patterns[i].pattern != NULL; i++) {
372 ctx.inboxcase = glob->patterns[i].inboxcase;
374 ret = imap_match_pattern(&ctx, data, glob->patterns[i].pattern);