Lines Matching defs:attr

340 	struct dsync_mailbox_attribute lookup_attr, *attr;
365 attr = t_new(struct dsync_mailbox_attribute, 1);
366 attr->type = type;
367 attr->key = key;
368 attr->value = value.value;
369 attr->value_stream = value.value_stream;
370 attr->last_change = value.last_change;
372 attr->deleted = attr_change->deleted &&
373 !DSYNC_ATTR_HAS_VALUE(attr);
374 attr->modseq = attr_change->modseq;
376 *attr_r = attr;
449 dsync_attributes_cmp(const struct dsync_mailbox_attribute *attr,
453 if (DSYNC_ATTR_HAS_VALUE(attr) &&
458 } else if (!DSYNC_ATTR_HAS_VALUE(attr) &&
465 return dsync_attributes_cmp_values(attr, local_attr, cmp_r);
470 const struct dsync_mailbox_attribute *attr,
478 i_assert(DSYNC_ATTR_HAS_VALUE(attr) || attr->deleted);
480 if (attr->deleted &&
490 attr->modseq > importer->last_common_modseq &&
496 attr->modseq <= importer->last_common_modseq &&
502 } else if (attr->last_change > local_attr->last_change) {
505 } else if (attr->last_change < local_attr->last_change) {
515 if (dsync_attributes_cmp(attr, local_attr, &cmp) < 0) {
526 if (attr->modseq > local_attr->modseq) {
529 } else if (attr->modseq < local_attr->modseq) {
544 value.value = attr->value;
545 value.value_stream = attr->value_stream;
546 value.last_change = attr->last_change;
547 if (mailbox_attribute_set(importer->trans, attr->type,
548 attr->key, &value) < 0) {
550 mailbox_get_vname(importer->box), attr->key,
559 const struct dsync_mailbox_attribute *attr)
565 if (dsync_mailbox_import_lookup_attr(importer, attr->type,
566 attr->key, &local_attr) < 0)
569 ret = dsync_mailbox_import_attribute_real(importer, attr,
574 imp_debug(importer, "Import attribute %s: %s", attr->key,