Commit Graph

7 Commits

Author SHA1 Message Date
10007530c1 feat: add flat-file database backend for message history
Add pluggable storage backend abstraction (vtable) to the database layer,
allowing selection between SQLite (default) and a new flat-file backend
that stores messages as human-readable plain text files.

New files:
- database_sqlite.c: extracted SQLite backend from database.c
- database_flatfile.c: plain text backend with tolerant parser,
  LMC correction chains, UTF-8/BOM/CRLF handling, integrity checks

Commands:
- /privacy logging flatfile — switch to flat-file backend
- /history verify [<jid>] — check integrity of stored history

Fixes:
- Add missing 'off' guard in flatfile backend
- Enable CHLOG/HISTORY prefs when switching to flatfile mode

Logs stored in ~/.local/share/profanity/flatlog/{account}/{contact}/{date}.log
Format: {ISO8601} [{type}|{enc}|id:{id}|corrects:{id}] {sender}: {message}

Updated: CHANGELOG, CONTRIBUTING.md, profrc.example, man page, cmd_defs,
Makefile.am, test stubs, functional test support (PROF_FLATFILE=1)
2026-02-17 19:37:42 +03:00
Stefan Ott
8044c82614 Add support for offline MUC notifications 2022-04-23 02:42:23 +02:00
Michael Vetter
21ad79e03d Merge pull request #1683 from paulfertser/more-example-aliases
Include useful aliases in profrc example
2022-04-04 23:43:35 +02:00
Paul Fertser
73d4eb62ae Include useful aliases in profrc example
Since some other commands are using british spelling for colour it
makes sense to have it available for /color command as well.

IRC users will feel more at home having /topic command equivalent to
/subject (which seems to be a MUC-specific terminology).
2022-04-03 12:19:05 +03:00
Paul Fertser
d40dc1b850 Use default rather than boothj5 theme in profrc example 2022-04-02 13:50:37 +03:00
Aurelien Aptel
15064d9739 XEP-0392: config: add "color.nick" bool option
the option will control whether to enable coloration of usernames
based on the hashing algorithm described in XEP-0392.
2019-12-03 21:10:39 +01:00
James Booth
1b13595369 Added example profrc config
issue #373
2014-06-29 22:58:33 +01:00