aboutsummaryrefslogtreecommitdiffstats
path: root/tests/db-exclusive-lock/t
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-05-15 05:06:07 +0200
committerGuilhem Moulin <guilhem@fripost.org>2019-05-27 00:07:30 +0200
commit25362c873c7641341f17e9c2e8d17d82cb3d94c5 (patch)
tree077832734c613e28c3037138f482ff1ed2db3d77 /tests/db-exclusive-lock/t
parentce35ea5f320184a9626f945fdf5a1648062d3e18 (diff)
interimap: avoid caching hierarchy delimiters forever in the database.
Following recommendation from https://www.imapwiki.org/ClientImplementation/MailboxList#Hierarchy_separators Instead, use null characters internally, and substitute them with the local and remote hierarchy delimiters (which thus no longer need to match) for IMAP commands. This require a database schema upgrade to alter the mailbox name column type from TEXT to BLOB. We're using SQLite's user_version PRAGMA to keep track of schema version; beware that `.dump` doesn't export its value! In logging messages, local and remote mailbox names are shown as is (with their respective delimiters) while database mailbox names are shown by replacing null characters with the *local* hierarchy delimiter. Moreover for mailbox names specified on the command line or the configuration file (with the "list-mailbox" option) the *local* hierarchy delimiter should be used.
Diffstat (limited to 'tests/db-exclusive-lock/t')
0 files changed, 0 insertions, 0 deletions