Files
cproof/src/xmpp
jabber.developer2 507ef91b5f feat: complete field parity, harden export/import, add tests
Export/Import improvements:
- Replace pagination with direct SQL query (db_sqlite_get_all_chat)
- Wrap import in SQL transaction with rollback on error
- Add fsync before fclose in export for data safety
- Sort merged output by timestamp with secondary key (stanza_id, from_jid)
- Export archive_id and marked_read from SQLite (lossless migration)
- Add progress indication every 500 messages during write/import
- Expand dedup key body prefix from 64 to 256 chars
- Fix g_slist_append O(n²) → g_slist_prepend + g_slist_reverse O(n)

Field parity (to_jid, to_resource, marked_read):
- Add fields to ff_parsed_line_t struct
- Write/parse to:|to_res:|read: metadata tags in flatfile format
- Pass to_resource through _ff_add_message and all callers
- Add marked_read to ProfMessage struct with -1 default (unset)
- Preserve fields across export/import round-trips

Tests (19 new: 11 unit + 8 functional):
- Unit: to_jid_and_marked_read, bracket_in_stanza_id, backslash_in_resource,
  mucpm_type, all_enc_types, crlf_handling, to_jid_special_chars,
  multiple_lines, parsed_line_free_null_safe, no_space_rejected,
  unclosed_bracket
- Functional: export_idempotent_no_duplicates, export_lmc_correction_survives,
  switch_preserves_old_backend_data, export_all_contacts,
  import_double_dedup, verify_after_export,
  switch_backends_independent_messages, export_empty_contact
- Rebalance test groups: move Chat Session from Group 3 to Group 4
  (25/33/30/27 instead of 25/33/36/21)
- Remove hardcoded test counts from group comments

Man page:
- Document /history switch sqlite|flatfile
2026-03-12 18:46:42 +03:00
..
2025-03-27 20:06:38 +01:00
2025-03-27 20:06:38 +01:00
2020-07-07 14:18:57 +02:00
2019-11-13 12:11:05 +01:00
2021-10-27 22:45:44 +02:00
2025-03-11 12:15:09 +01:00
2023-01-18 20:11:13 +01:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2021-10-27 22:45:44 +02:00
2023-12-28 19:21:27 +01:00
2020-07-07 14:18:57 +02:00
2022-02-01 15:01:28 +01:00
2020-07-07 14:18:57 +02:00
2025-04-11 18:55:17 +02:00
2020-07-07 14:18:57 +02:00
2023-05-10 18:12:11 +02:00
2025-03-27 20:06:38 +01:00
2022-10-18 23:24:30 +01:00
2022-10-18 23:24:30 +01:00