Lines Matching defs:attr
1484 const struct dsync_mailbox_attribute *attr)
1498 switch (attr->type) {
1508 dsync_serializer_encode_add(encoder, "key", attr->key);
1509 if (attr->value != NULL)
1510 dsync_serializer_encode_add(encoder, "value", attr->value);
1511 else if (attr->value_stream != NULL)
1514 if (attr->deleted)
1516 if (attr->last_change != 0) {
1518 dec2str(attr->last_change));
1520 if (attr->modseq != 0) {
1522 dec2str(attr->modseq));
1528 if (attr->value_stream != NULL) {
1530 ibc->value_output = attr->value_stream;
1543 struct dsync_mailbox_attribute *attr;
1563 attr = p_new(pool, struct dsync_mailbox_attribute, 1);
1572 attr->type = MAIL_ATTRIBUTE_TYPE_PRIVATE;
1575 attr->type = MAIL_ATTRIBUTE_TYPE_SHARED;
1583 attr->key = p_strdup(pool, value);
1586 attr->deleted = TRUE;
1588 str_to_time(value, &attr->last_change) < 0) {
1593 str_to_uint64(value, &attr->modseq) < 0) {
1602 attr->value_stream = dsync_ibc_stream_input_stream(ibc);
1604 ibc->cur_attr = attr;
1610 attr->value = p_strdup(pool, value);
1612 *attr_r = attr;