Lines Matching refs:prefix

45 				       const char *prefix);
67 ns->prefix);
93 /* namespace prefix itself */
94 out_set->name = p_strndup(pool, ns->prefix, ns->prefix_len-1);
97 p_strconcat(pool, ns->prefix, in_set->name, NULL);
203 /* allow matching prefix only when it's done without
210 with longer prefix that matches this pattern
211 (namespaces are sorted by prefix length) */
250 if (len > 0 && ns->prefix[len-1] == mail_namespace_get_sep(ns))
255 /* non-listable namespace matches only with exact prefix */
256 if (strncmp(ns->prefix, pattern, ns->prefix_len) != 0)
258 /* with prefix="", list=no we don't want to show anything,
268 prefix_without_sep = t_strndup(ns->prefix, len);
290 /* filter out namespaces whose prefix doesn't match. this same code
315 /* non-listable namespace matches only with exact prefix */
316 if (strncmp(ns->prefix, pattern, ns->prefix_len) != 0)
320 prefix_without_sep = t_strndup(ns->prefix, ns->prefix_len-1);
356 if ((ret = mailbox_list_match_anything(ctx, ns, ns->prefix)) != 0)
364 const char *prefix)
367 size_t prefix_len = strlen(prefix);
372 strncmp(ns->prefix, prefix, prefix_len) == 0) {
393 strncmp(ns->prefix, vname, ns->prefix_len-1) == 0 &&
399 struct mail_namespace *ns, const char *prefix)
408 if ((ret = ns_prefix_has_visible_child_namespace(ctx, prefix)) != 0)
411 pattern = t_strconcat(prefix, "%", NULL);
449 if (strncasecmp(ns->prefix, "INBOX", 5) == 0 &&
450 ns->prefix[5] == mail_namespace_get_sep(ns)) {
451 /* prefix=INBOX/ (or prefix=INBOX/something/) namespace exists.
461 ctx->ns_info.vname = p_strndup(ctx->pool, ns->prefix,
494 if ((ret = mailbox_list_match_anything(ctx, ns, ns->prefix)) > 0)
507 /* see if namespace prefix is selectable */
521 const char *prefix;
531 /* prefix="" namespace doesn't exist, and neither does
532 anything beginning with prefix=INBOX/ (we checked this
541 prefix = t_strdup_printf("INBOX%c",
543 ret = mailbox_list_match_anything(ctx, ctx->inbox_info.ns, prefix);
588 but the namespace prefix itself might */
611 /* delayed sending of namespace prefix */
640 strncmp(info->vname, info->ns->prefix,
643 /* this is an entry for namespace prefix, which we
646 subscribed namespace prefix). */
764 else called INBOX (e.g. namespace prefix) we can show it