/dovecot/src/plugins/push-notification/ |
H A D | push-notification-txn-mbox.h | 10 const char *mailbox; member in struct:push_notification_txn_mbox 18 struct mailbox *box);
|
H A D | push-notification-txn-msg.h | 13 const char *mailbox; member in struct:push_notification_txn_msg
|
/dovecot/src/lib-mail/ |
H A D | message-address.h | 17 const char *mailbox; member in struct:message_address 24 mailbox and domain are set to MISSING_MAILBOX and MISSING_DOMAIN strings. 40 const char *name, const char *mailbox, const char *domain)
|
H A D | message-address.c | 98 ctx->addr.mailbox = p_strdup(ctx->pool, str_c(ctx->str)); 236 read into addr.mailbox) is a mailbox, but if it's followed 242 ctx->addr.mailbox = NULL; 256 if (ctx->addr.mailbox == NULL) { 257 ctx->addr.mailbox = !ctx->fill_missing ? "" : "MISSING_MAILBOX"; 272 /* mailbox = name-addr / addr-spec */ 279 ctx->addr.mailbox != NULL && ctx->addr.domain == NULL) { 280 ctx->addr.name = ctx->addr.mailbox; 281 ctx->addr.mailbox 579 message_address_init(struct message_address *addr, const char *name, const char *mailbox, const char *domain) argument [all...] |
/dovecot/src/imap/ |
H A D | cmd-close.c | 10 struct mailbox *mailbox = client->mailbox; local 20 storage = mailbox_get_storage(mailbox); 21 if (imap_expunge(mailbox, NULL, &client->expunged_count) < 0) { 22 errstr = mailbox_get_last_error(mailbox, &error); 30 if (mailbox_sync(mailbox, 0) < 0)
|
H A D | cmd-create.c | 11 const char *mailbox, *orig_mailbox; local 12 struct mailbox *box; 16 /* <mailbox> */ 17 if (!client_read_string_args(cmd, 1, &mailbox)) 20 orig_mailbox = mailbox; 21 ns = client_find_namespace(cmd, &mailbox); 31 mailbox. */ 34 /* drop separator from mailbox. it's already dropped when 36 if (len == strlen(mailbox)) 37 mailbox [all...] |
H A D | cmd-resetkey.c | 21 const char *mailbox, const struct imap_arg *mech_args) 25 struct mailbox *box; 45 /* find mailbox namespace */ 46 ns = client_find_namespace(cmd, &mailbox); 50 /* open mailbox */ 51 box = mailbox_alloc(ns->list, mailbox, flags); 68 that has the mailbox selected will receive an untagged OK response 70 at all. We could probably do it by communicating via mailbox list 80 const char *mailbox; local 92 else if (imap_arg_get_astring(&args[0], &mailbox)) 20 cmd_resetkey_mailbox(struct client_command_context *cmd, const char *mailbox, const struct imap_arg *mech_args) argument [all...] |
H A D | cmd-status.c | 16 const char *mailbox, *orig_mailbox; local 19 /* <mailbox> <status items> */ 23 if (!imap_arg_get_astring(&args[0], &mailbox) || 33 orig_mailbox = mailbox; 34 ns = client_find_namespace(cmd, &mailbox); 38 selected_mailbox = client->mailbox != NULL && 39 mailbox_equals(client->mailbox, ns, mailbox); 40 if (imap_status_get(cmd, ns, mailbox, &items, &result) < 0) { 50 "Status on selected mailbox complete [all...] |
H A D | cmd-subscribe.c | 9 subscribe_is_valid_name(struct client_command_context *cmd, struct mailbox *box) 37 struct mailbox *box, *box2; 38 const char *mailbox, *orig_mailbox; local 42 /* <mailbox> */ 43 if (!client_read_string_args(cmd, 1, &mailbox)) 45 orig_mailbox = mailbox; 47 ns = client_find_namespace(cmd, &mailbox); 51 box = mailbox_alloc(ns->list, mailbox, 0); 64 !str_ends_with_char(mailbox, sep)) { 66 const char *name2 = t_strdup_printf("%s%c", mailbox, se [all...] |
H A D | imap-status.c | 61 struct mail_namespace *ns, const char *mailbox, 66 struct mailbox *box; 70 if (client->mailbox != NULL && 71 mailbox_equals(client->mailbox, ns, mailbox)) { 72 /* this mailbox is selected */ 73 box = client->mailbox; 75 /* open the mailbox */ 76 box = mailbox_alloc(ns->list, mailbox, MAILBOX_FLAG_READONLY); 96 if (box != client->mailbox) 60 imap_status_get(struct client_command_context *cmd, struct mail_namespace *ns, const char *mailbox, const struct imap_status_items *items, struct imap_status_result *result_r) argument [all...] |
H A D | cmd-copy.c | 55 src_trans = mailbox_transaction_begin(client->mailbox, 0, 95 static void copy_update_trashed(struct client *client, struct mailbox *box, 112 struct mailbox *destbox; 115 const char *messageset, *mailbox, *src_uidset; local 123 /* <message set> <mailbox> */ 124 if (!client_read_string_args(cmd, 2, &messageset, &mailbox)) 134 if (client_open_save_dest_box(cmd, mailbox, &destbox) < 0) { 164 for mailbox */ 201 if (destbox != client->mailbox) {
|
H A D | cmd-setmetadata.c | 17 struct mailbox *box; 37 if (ctx->box != NULL && ctx->box != ctx->cmd->client->mailbox) 298 const char *mailbox) 304 ns = client_find_namespace(cmd, &mailbox); 308 if (client->mailbox != NULL && !client->mailbox_examined && 309 mailbox_equals(client->mailbox, ns, mailbox)) 310 ctx->box = client->mailbox; 312 ctx->box = mailbox_alloc(ns->list, mailbox, 0); 328 const char *mailbox; local 297 cmd_setmetadata_mailbox(struct imap_setmetadata_context *ctx, const char *mailbox) argument [all...] |
H A D | cmd-getmetadata.c | 8 #include "mailbox-list-iter.h" 16 struct mailbox *box; 402 struct mail_namespace *ns, const char *mailbox) 404 ctx->box = mailbox_alloc(ns->list, mailbox, MAILBOX_FLAG_READONLY); 415 struct mail_namespace *ns, const char *mailbox) 419 ret = cmd_getmetadata_try_mailbox(ctx, ns, mailbox); 448 "* NO Failed to open mailbox %s: %s", 462 const char *mailbox, *entry_name; local 483 if (!imap_arg_get_astring(&args[0], &mailbox)) { 498 if (mailbox[ 401 cmd_getmetadata_try_mailbox(struct imap_getmetadata_context *ctx, struct mail_namespace *ns, const char *mailbox) argument 414 cmd_getmetadata_mailbox(struct imap_getmetadata_context *ctx, struct mail_namespace *ns, const char *mailbox) argument [all...] |
/dovecot/src/plugins/expire/ |
H A D | expire-set.c | 41 bool expire_set_lookup(struct expire_set *set, const char *mailbox) argument 46 if (imap_match(*globp, mailbox) == IMAP_MATCH_YES)
|
H A D | doveadm-expire.c | 24 const char *mailbox; member in struct:expire_query 54 const char *mailbox, time_t oldest_savedate) 63 if (strcmp(query->mailbox, mailbox) == 0) 66 if (imap_match(query->glob, mailbox) == IMAP_MATCH_YES) 80 const char *username, *mailbox; local 85 /* dict_key = DICT_EXPIRE_PREFIX<user>/<mailbox> */ 87 mailbox = strchr(username, '/'); 88 if (mailbox == NULL) { 93 username = t_strdup_until(username, mailbox 53 doveadm_expire_mail_match_mailbox(struct doveadm_expire_mail_cmd_context *ectx, const char *mailbox, time_t oldest_savedate) argument [all...] |
/dovecot/src/indexer/ |
H A D | indexer-queue.h | 10 char *mailbox; member in struct:indexer_request 14 /* index messages in this mailbox */ 16 /* optimize this mailbox */ 18 /* currently indexing this mailbox */ 41 const char *username, const char *mailbox, 45 const char *username, const char *mailbox,
|
/dovecot/src/plugins/acl/ |
H A D | acl-shared-storage.c | 17 struct mailbox *box; 41 const char *mailbox, *error; local 62 mailbox = str_c(str); 63 if (shared_storage_get_namespace(&new_ns, &mailbox) < 0)
|
H A D | doveadm-acl.c | 26 struct mail_user *user, const char *mailbox, 27 struct mailbox **box_r) 31 struct mailbox *box; 39 ns = mail_namespace_find(user->namespaces, mailbox); 40 box = mailbox_alloc(ns->list, mailbox, 43 i_error("Can't open mailbox %s: %s", mailbox, 77 struct mailbox *box) 107 const char *mailbox = _ctx->args[0]; local 108 struct mailbox *bo 25 cmd_acl_mailbox_open(struct doveadm_mail_cmd_context *ctx, struct mail_user *user, const char *mailbox, struct mailbox **box_r) argument 161 const char *mailbox = ctx->args[0]; local 223 const char *mailbox = _ctx->args[0], *id = _ctx->args[1]; local 284 const char *mailbox = ctx->args[0], *id = ctx->args[1]; local 352 cmd_acl_debug_mailbox_open(struct doveadm_mail_cmd_context *ctx, struct mail_user *user, const char *mailbox, struct mailbox **box_r) argument 499 const char *mailbox = ctx->args[0]; local [all...] |
/dovecot/src/doveadm/ |
H A D | doveadm-mail-save.c | 10 const char *mailbox; member in struct:save_cmd_context 14 cmd_save_to_mailbox(struct save_cmd_context *ctx, struct mailbox *box, 32 i_error("Failed to open mailbox %s: %s", 89 struct mailbox *box; 92 ns = mail_namespace_find(user->namespaces, ctx->mailbox); 93 box = mailbox_alloc(ns->list, ctx->mailbox, MAILBOX_FLAG_SAVEONLY); 113 ctx->mailbox = optarg; 130 ctx->mailbox = "INBOX"; 136 .usage = DOVEADM_CMD_MAIL_USAGE_PREFIX"[-m mailbox]", 140 DOVEADM_CMD_PARAM('m', "mailbox", CMD_PARAM_ST [all...] |
H A D | doveadm-mail-index.c | 11 #include "mailbox-list-iter.h" 29 static int cmd_index_box_precache(struct mailbox *box) 104 struct mailbox *box; 113 don't bother syncing the mailbox, that alone can take a 116 i_error("Opening mailbox %s failed: %s", info->vname, 131 i_error("Syncing mailbox %s failed: %s", info->vname, 160 struct mail_user *user, const char *mailbox) 172 str_append_tabescaped(str, mailbox); 286 .usage = DOVEADM_CMD_MAIL_USAGE_PREFIX"[-q] [-n <max recent>] <mailbox mask>", 292 DOVEADM_CMD_PARAM('\0',"mailbox 159 cmd_index_queue(struct index_cmd_context *ctx, struct mail_user *user, const char *mailbox) argument [all...] |
H A D | doveadm-mail-import.c | 9 #include "doveadm-mailbox-list-iter.h" 43 struct mailbox **box_r) 46 struct mailbox *box; 51 /* prefix destination mailbox name with given parent mailbox */ 70 i_error("Couldn't create mailbox %s: %s", name, errstr); 78 i_error("Couldn't subscribe to mailbox %s: %s", 83 i_error("Syncing mailbox %s failed: %s", name, 95 struct mailbox *dest_box) 99 const char *mailbox local [all...] |
H A D | doveadm-mail-mailbox-metadata.c | 9 #include "doveadm-mailbox-list-iter.h" 13 const char *mailbox; member in struct:metadata_cmd_context 26 struct mailbox **box_r) 28 mctx->empty_mailbox_name = mctx->mailbox[0] == '\0'; 33 "mailbox name cannot be empty"); 45 /* mailbox attributes */ 46 *ns_r = mail_namespace_find(user->namespaces, mctx->mailbox); 47 *box_r = mailbox_alloc((*ns_r)->list, mctx->mailbox, 0); 52 i_error("Failed to open mailbox: %s", 68 struct mailbox *bo [all...] |
/dovecot/src/lib-imap/ |
H A D | imap-url.h | 15 /* mailbox */ 16 const char *mailbox; member in struct:imap_url
|
H A D | imap-envelope.c | 36 imap_append_nstring(str, addr->mailbox); 97 const char *name, *route, *mailbox, *domain; local 111 if (!imap_arg_get_nstring(&list_args[2], &mailbox)) 119 addr->mailbox = p_strdup(pool, mailbox);
|
/dovecot/src/plugins/imap-quota/ |
H A D | imap-quota-plugin.c | 80 struct mailbox *box; 83 const char *mailbox, *orig_mailbox, *name; local 87 /* <mailbox> */ 88 if (!client_read_string_args(cmd, 1, &mailbox)) 90 orig_mailbox = mailbox; 92 ns = client_find_namespace(cmd, &mailbox); 105 box = mailbox_alloc(ns->list, mailbox, MAILBOX_FLAG_READONLY);
|