Searched refs:kw (Results 1 - 13 of 13) sorted by relevance

/dovecot/src/doveadm/
H A Ddoveadm-mail-flags.c26 struct mail_keywords *kw = NULL; local
34 if (mailbox_keywords_create(box, ctx->keywords, &kw) < 0) {
45 if (kw != NULL)
46 mail_update_keywords(mail, ctx->modify_type, kw);
48 if (kw != NULL)
49 mailbox_keywords_unref(&kw);
/dovecot/src/lib-storage/
H A Dmailbox-keywords.c11 struct mail_keywords *kw; local
23 kw = mail_index_keywords_create(box->index, keywords);
25 return kw;
H A Dmail-search-args-imap.c112 const struct mail_keywords *kw = arg->initialized.keywords; local
117 if (kw == NULL || kw->count == 0) {
123 names_arr = mail_index_get_keywords(kw->index);
125 if (kw->count > 1)
127 for (i = 0; i < kw->count; i++) {
128 namep = array_idx(names_arr, kw->idx[i]);
133 if (kw->count > 1)
H A Dmail.c469 const char *const *kw = mail_get_keywords(mail); local
470 return (str_array_icase_find(kw, MAIL_KEYWORD_HAS_ATTACHMENT) !=
471 str_array_icase_find(kw, MAIL_KEYWORD_HAS_NO_ATTACHMENT));
/dovecot/src/lib-storage/index/
H A Dindex-rebuild.c71 struct mail_keywords *kw; local
82 kw = mail_index_keywords_create_from_indexes(index, &old_keywords);
83 mail_index_update_keywords(ctx->trans, new_seq, MODIFY_REPLACE, kw);
84 mail_index_keywords_unref(&kw);
H A Dindex-sync-pvt.c58 struct mail_keywords *kw; local
60 kw = mail_index_keywords_create_from_indexes(ctx->box->index_pvt,
63 MODIFY_ADD, kw);
64 mail_index_keywords_unref(&kw);
/dovecot/src/lib-storage/index/maildir/
H A Dmaildir-sync-index.c371 struct mail_keywords *kw; local
401 kw = mail_index_keywords_create_from_indexes(box->index,
403 mail_index_update_keywords(ctx->trans, seq, MODIFY_REPLACE, kw);
404 mail_index_keywords_unref(&kw);
432 kw = mail_index_keywords_create_from_indexes(box->index,
434 mail_index_update_keywords(ctx->trans, seq, MODIFY_REMOVE, kw);
435 mail_index_keywords_unref(&kw);
439 kw = mail_index_keywords_create_from_indexes(box->index,
441 mail_index_update_keywords(ctx->trans, seq, MODIFY_ADD, kw);
442 mail_index_keywords_unref(&kw);
539 struct mail_keywords *kw; local
[all...]
/dovecot/src/lib-storage/index/imapc/
H A Dimapc-mailbox.c304 static bool keywords_are_equal(struct mail_keywords *kw, argument
311 if (count != kw->count)
317 if (kw->idx[i] == kw_idx[j])
544 struct mail_keywords *kw; local
559 kw = mail_index_keywords_create(mbox->box.index,
561 if (!keywords_are_equal(kw, &old_kws)) {
563 lseq, MODIFY_REPLACE, kw);
565 mail_index_keywords_unref(&kw);
644 struct mail_keywords *kw; local
665 kw
[all...]
H A Dimapc-save.c198 imapc_append_keywords(string_t *str, struct mail_keywords *kw) argument
204 kw_arr = mail_index_get_keywords(kw->index);
205 for (i = 0; i < kw->count; i++) {
206 kw_p = array_idx(kw_arr, kw->idx[i]);
/dovecot/src/lib-index/
H A Dmail-index-fsck.c98 const uint8_t *kw; local
106 kw = CONST_PTR_OFFSET(rec, kw_pos);
108 if (kw[i] != 0) {
110 if ((kw[i] & (1 << j)) != 0)
H A Dmail-index-transaction-update.c1289 struct mail_index_transaction_keyword_update *kw; local
1295 array_foreach_modifiable(&t->keyword_updates, kw) {
1296 if (mail_index_cancel_array(&kw->add_seq, seq))
1298 if (mail_index_cancel_array(&kw->remove_seq, seq))
1300 if (array_is_created(&kw->add_seq) ||
1301 array_is_created(&kw->remove_seq))
/dovecot/src/lib-lda/
H A Dmail-deliver.c311 struct mail_keywords *kw; local
348 kw = str_array_length(keywords) == 0 ? NULL :
355 mailbox_save_set_flags(save_ctx, flags, kw);
365 if (kw != NULL)
366 mailbox_keywords_unref(&kw);
/dovecot/src/doveadm/dsync/
H A Ddsync-mailbox-import.c1071 struct mail_keywords *kw; local
1187 kw = mailbox_keywords_create_valid(mail->box,
1189 mail_update_keywords(mail, MODIFY_ADD, kw);
1190 mailbox_keywords_unref(&kw);
1194 kw = mailbox_keywords_create_valid(mail->box,
1196 mail_update_keywords(mail, MODIFY_REMOVE, kw);
1197 mailbox_keywords_unref(&kw);
1206 struct mail_keywords *kw; local
1231 kw = mailbox_keywords_create_valid(mail->box, array_idx(&keywords, 0));
1232 mail_update_keywords(mail, MODIFY_REPLACE, kw);
[all...]

Completed in 44 milliseconds