Lines Matching defs:attr
54 struct dsync_mailbox_attribute attr;
558 struct dsync_mailbox_attribute *attr;
563 &attr, &attr)) {
564 if (attr->exported || !attr->deleted)
568 if (mailbox_attribute_get_stream(exporter->box, attr->type,
569 attr->key, &value) < 0) {
571 "Mailbox attribute %s lookup failed: %s", attr->key,
581 attr->last_change = value.last_change;
583 attr->value = p_strdup(exporter->pool, value.value);
584 attr->value_stream = value.value_stream;
585 attr->deleted = FALSE;
587 attr->exported = TRUE;
588 exporter->attr = *attr;
599 struct dsync_mailbox_attribute lookup_attr, *attr;
648 attr = &exporter->attr;
649 i_zero(attr);
650 attr->type = exporter->attr_type;
651 attr->value = p_strdup(exporter->pool, value.value);
652 attr->value_stream = value.value_stream;
653 attr->last_change = value.last_change;
656 attr->key = attr_change->key;
657 attr->deleted = attr_change->deleted &&
658 !DSYNC_ATTR_HAS_VALUE(attr);
659 attr->modseq = attr_change->modseq;
661 attr->key = p_strdup(exporter->pool, key);
690 i_stream_unref(&exporter->attr.value_stream);
698 *attr_r = &exporter->attr;
943 i_stream_unref(&exporter->attr.value_stream);