Lines Matching refs:encoder
654 struct dsync_serializer_encoder *encoder;
659 encoder = dsync_ibc_send_encode_begin(ibc, ITEM_HANDSHAKE);
660 dsync_serializer_encode_add(encoder, "hostname", set->hostname);
662 dsync_serializer_encode_add(encoder, "sync_ns_prefix",
666 dsync_serializer_encode_add(encoder, "sync_box", set->sync_box);
668 dsync_serializer_encode_add(encoder, "virtual_all_box",
680 dsync_serializer_encode_add(encoder, "exclude_mailboxes",
684 dsync_serializer_encode_add(encoder, "sync_box_guid",
703 dsync_serializer_encode_add(encoder, "sync_type", sync_type);
705 dsync_serializer_encode_add(encoder, "lock_timeout",
709 dsync_serializer_encode_add(encoder, "import_commit_msgs_interval",
713 dsync_serializer_encode_add(encoder, "sync_since_timestamp",
717 dsync_serializer_encode_add(encoder, "sync_until_timestamp",
721 dsync_serializer_encode_add(encoder, "sync_max_size",
725 dsync_serializer_encode_add(encoder, "sync_flags",
729 dsync_serializer_encode_add(encoder, "send_mail_requests", "");
731 dsync_serializer_encode_add(encoder, "backup_send", "");
733 dsync_serializer_encode_add(encoder, "backup_recv", "");
735 dsync_serializer_encode_add(encoder, "debug", "");
737 dsync_serializer_encode_add(encoder, "sync_visible_namespaces", "");
739 dsync_serializer_encode_add(encoder, "no_mail_sync", "");
741 dsync_serializer_encode_add(encoder, "no_mailbox_renames", "");
743 dsync_serializer_encode_add(encoder, "no_backup_overwrite", "");
745 dsync_serializer_encode_add(encoder, "purge_remote", "");
747 dsync_serializer_encode_add(encoder, "no_notify", "");
749 dsync_serializer_encode_add(encoder, "empty_hdr_workaround", "");
758 dsync_serializer_encode_add(encoder, "hashed_headers", str_c(str2));
759 dsync_serializer_encode_finish(&encoder, str);
927 struct dsync_serializer_encoder *encoder;
931 encoder = dsync_ibc_send_encode_begin(ibc, ITEM_MAILBOX_STATE);
932 dsync_serializer_encode_add(encoder, "mailbox_guid",
934 dsync_serializer_encode_add(encoder, "last_uidvalidity",
936 dsync_serializer_encode_add(encoder, "last_common_uid",
938 dsync_serializer_encode_add(encoder, "last_common_modseq",
940 dsync_serializer_encode_add(encoder, "last_common_pvt_modseq",
942 dsync_serializer_encode_add(encoder, "last_messages_count",
945 dsync_serializer_encode_add(encoder, "changes_during_sync", "");
947 dsync_serializer_encode_finish(&encoder, str);
1007 struct dsync_serializer_encoder *encoder;
1025 encoder = dsync_ibc_send_encode_begin(ibc, ITEM_MAILBOX_TREE_NODE);
1026 dsync_serializer_encode_add(encoder, "name", str_c(namestr));
1029 dsync_serializer_encode_add(encoder, "existence", "n");
1032 dsync_serializer_encode_add(encoder, "existence", "y");
1035 dsync_serializer_encode_add(encoder, "existence", "d");
1040 dsync_serializer_encode_add(encoder, "mailbox_guid",
1044 dsync_serializer_encode_add(encoder, "uid_validity",
1048 dsync_serializer_encode_add(encoder, "uid_next",
1052 dsync_serializer_encode_add(encoder, "last_renamed_or_created",
1056 dsync_serializer_encode_add(encoder, "last_subscription_change",
1060 dsync_serializer_encode_add(encoder, "subscribed", "");
1061 dsync_serializer_encode_finish(&encoder, str);
1137 struct dsync_serializer_encoder *encoder,
1153 dsync_serializer_encode_add(encoder, key, str_c(str));
1163 struct dsync_serializer_encoder *encoder;
1170 encoder = dsync_ibc_send_encode_begin(ibc, ITEM_MAILBOX_DELETE);
1172 dsync_serializer_encode_add(encoder, "hierarchy_sep", sep);
1175 dsync_ibc_stream_encode_delete(substr, encoder, deletes, count,
1178 dsync_ibc_stream_encode_delete(substr, encoder, deletes, count,
1181 dsync_ibc_stream_encode_delete(substr, encoder, deletes, count,
1184 dsync_serializer_encode_finish(&encoder, str);
1261 struct dsync_serializer_encoder *encoder;
1275 encoder = dsync_serializer_encode_begin(ibc->serializers[ITEM_MAILBOX_CACHE_FIELD]);
1276 dsync_serializer_encode_add(encoder, "name", field->name);
1293 dsync_serializer_encode_add(encoder, "decision", decision);
1295 dsync_serializer_encode_add(encoder, "last_used",
1298 dsync_serializer_encode_finish(&encoder, str);
1312 struct dsync_serializer_encoder *encoder;
1317 encoder = dsync_ibc_send_encode_begin(ibc, ITEM_MAILBOX);
1318 dsync_serializer_encode_add(encoder, "mailbox_guid",
1322 dsync_serializer_encode_add(encoder, "mailbox_lost", "");
1324 dsync_serializer_encode_add(encoder, "mailbox_ignore", "");
1326 dsync_serializer_encode_add(encoder, "have_guids", "");
1328 dsync_serializer_encode_add(encoder, "have_save_guids", "");
1330 dsync_serializer_encode_add(encoder, "have_only_guid128", "");
1331 dsync_serializer_encode_add(encoder, "uid_validity",
1333 dsync_serializer_encode_add(encoder, "uid_next",
1335 dsync_serializer_encode_add(encoder, "messages_count",
1337 dsync_serializer_encode_add(encoder, "first_recent_uid",
1339 dsync_serializer_encode_add(encoder, "highest_modseq",
1341 dsync_serializer_encode_add(encoder, "highest_pvt_modseq",
1346 dsync_serializer_encode_add(encoder, "cache_fields", value);
1348 dsync_serializer_encode_finish(&encoder, str);
1487 struct dsync_serializer_encoder *encoder;
1495 encoder = dsync_ibc_send_encode_begin(ibc, ITEM_MAILBOX_ATTRIBUTE);
1507 dsync_serializer_encode_add(encoder, "type", type);
1508 dsync_serializer_encode_add(encoder, "key", attr->key);
1510 dsync_serializer_encode_add(encoder, "value", attr->value);
1512 dsync_serializer_encode_add(encoder, "stream", "");
1515 dsync_serializer_encode_add(encoder, "deleted", "");
1517 dsync_serializer_encode_add(encoder, "last_change",
1521 dsync_serializer_encode_add(encoder, "modseq",
1525 dsync_serializer_encode_finish(&encoder, str);
1621 struct dsync_serializer_encoder *encoder;
1626 encoder = dsync_ibc_send_encode_begin(ibc, ITEM_MAIL_CHANGE);
1641 dsync_serializer_encode_add(encoder, "type", type);
1642 dsync_serializer_encode_add(encoder, "uid", dec2str(change->uid));
1644 dsync_serializer_encode_add(encoder, "guid", change->guid);
1646 dsync_serializer_encode_add(encoder, "hdr_hash",
1650 dsync_serializer_encode_add(encoder, "modseq",
1654 dsync_serializer_encode_add(encoder, "pvt_modseq",
1658 dsync_serializer_encode_add(encoder, "add_flags",
1662 dsync_serializer_encode_add(encoder, "remove_flags",
1666 dsync_serializer_encode_add(encoder, "final_flags",
1670 dsync_serializer_encode_add(encoder, "keywords_reset", "");
1684 dsync_serializer_encode_add(encoder, "keyword_changes",
1688 dsync_serializer_encode_add(encoder, "received_timestamp",
1692 dsync_serializer_encode_add(encoder, "virtual_size",
1696 dsync_serializer_encode_finish(&encoder, str);
1822 struct dsync_serializer_encoder *encoder;
1826 encoder = dsync_ibc_send_encode_begin(ibc, ITEM_MAIL_REQUEST);
1828 dsync_serializer_encode_add(encoder, "guid", request->guid);
1830 dsync_serializer_encode_add(encoder, "uid",
1833 dsync_serializer_encode_finish(&encoder, str);
1871 struct dsync_serializer_encoder *encoder;
1878 encoder = dsync_ibc_send_encode_begin(ibc, ITEM_MAIL);
1880 dsync_serializer_encode_add(encoder, "guid", mail->guid);
1882 dsync_serializer_encode_add(encoder, "uid", dec2str(mail->uid));
1884 dsync_serializer_encode_add(encoder, "pop3_uidl",
1888 dsync_serializer_encode_add(encoder, "pop3_order",
1892 dsync_serializer_encode_add(encoder, "received_date",
1896 dsync_serializer_encode_add(encoder, "saved_date",
1900 dsync_serializer_encode_add(encoder, "stream", "");
1902 dsync_serializer_encode_finish(&encoder, str);
1985 struct dsync_serializer_encoder *encoder;
1989 encoder = dsync_ibc_send_encode_begin(ibc, ITEM_FINISH);
1991 dsync_serializer_encode_add(encoder, "error", error);
1993 dsync_serializer_encode_add(encoder, "mail_error",
1997 dsync_serializer_encode_add(encoder, "require_full_resync", "");
1998 dsync_serializer_encode_finish(&encoder, str);