CTL_CONVERSATIONSDB(8)
π ctl_conversationsdb β the Cyrus IMAP glow-up page π
okay bestie, welcome to ctl_conversationsdb(8), a manual page from the Cyrus IMAP docs. she does operations on the conversations databases. yes, plural, she's busy. π
β¨ NAME β¨
ctl_conversationsdb β perform operations on the conversations databases
like. that's the whole job. she's a conversations-database girlie and she's slaying at it. π
πΈ SYNOPSIS πΈ
ctl_conversationsdb [ -C config-file ] -d userid > text
ctl_conversationsdb [ -C config-file ] -u userid < text
ctl_conversationsdb [ -C config-file ] [ -v ] [ -z | -b | -R ] userid
ctl_conversationsdb [ -C config-file ] [ -v ] [ -z | -b | -R ] -r
four whole moods. pick your fighter. π¦
π DESCRIPTION π
so ctl_conversationsdb is the tool you use to do all kinds of admin operations on a conversations database and the associated info hanging out in cyrus.index files. it's giving backstage-pass energy. π«Ά
she reads her config options out of the imapd.conf(5) file, unless you tell her otherwise with -C. she's flexible like that.
the configdirectory option in imapd.conf(5) is what decides the default location of the conversations database. that's where she looks first, no cap.
okay so the first synopsis: the -d option dumps the contents of a conversations database to standard output in an ASCII format. the second synopsis: you feed that resulting file right back in using the -u option to "undump" from standard input. these two together are lowkey iconic for disaster recovery, or for changing the backend used to store the conversations database. glow-up via export/import, we love to see it. β¨
the third synopsis rebuilds conversations info in various ways for one specific user. the fourth does it for all users. head down to OPTIONS for the deets. π
oh and β this command was introduced in version 3.0. she's a classic. a legacy, even. periodt. π
π OPTIONS π
-C config-fileβ use the config file config-file instead of the defaultimapd.conf(5). your file, your rules.-d,--dumpβ dump the conversations database that corresponds to the user userid to standard output in an ASCII format. the resulting file can then recreate a database using the-uoption. it's giving backup baddie. πΎ-u,--undumpβ "undumps" the conversations database for the user userid, i.e. it replaces all the entries with data from ASCII records parsed from standard input. the output from the-doption works as the input here. round trip, bestie. π-v,--verboseβ be more verbose when running. she will simply say more. π£οΈ-r,--recursiveβ be recursive; apply the main operation to every user.
β οΈ Warning: do not combine with -u, it will not do what you expect. seriously. don't. π
-z,--clearβ remove all conversation information from the conversations database for user userid, and from all the user's mailboxes. good news: all of that info can be recalculated (eventually) from message headers using the-boption. so it's a clear, not a goodbye. π§-Z,--clearcids cid,...β remove all conversation information from the conversations database for user userid, and from all the user's mailboxes, but only for conversations matching the comma separated list of *cid*s in hex format. can be specified more than once, bc of course she can. π
the info can all be recalculated (eventually) from message headers, using the -b option. same energy as -z, just surgical.
-M,--clearmodseqβ reset the modseqs for all messages and conversation highwatermarks for user userid, and from the user's counters file. fresh start, no receipts. π§Ό-b,--rebuildβ rebuild all conversation information in the conversations database for user userid, and in all the user's mailboxes, from the header information in messages. does not affect messages which already have conversation information.
this is basically the bulk-mode version of what happens to each message when it arrives. use it to add missing conversation info for past messages β e.g. after using -z, or after upgrading Cyrus from older versions. also: this operation uses information from cyrus.cache files, so it does not need to read every single message file. efficiency queen. π₯
-R,--update-countsβ recalculate counts of messages stored in existing conversations in the conversations database for user userid. this is a limited subset of-b; in particular it does not create conversations or assign messages to conversations. she counts, she does not matchmake. π-S,--splitβ if given with-b, allows splitting of conversations during the rewrite. only do this if you're changing the maximum conversation size and you need to split those existing conversations. πͺ
π EXAMPLES π
[NB: Examples needed]
(the original literally says this. we're all waiting. bestie, if you got examples, drop them. π)
π HISTORY π
this command was introduced in version 3.0. iconic since day one. β
π FILES π
/etc/imapd.conf<configurationdir>/conversations.db
π SEE ALSO π
π«Ά AUTHOR π«Ά
The Cyrus Team, Nic Bernstein (Onlight) β legends, genuinely. π
Β©οΈ COPYRIGHT Β©οΈ
1993β2026, The Cyrus Team
okay that's the whole page, you ate that. π β¨
this was Cyrus IMAP docs, version 3.12.4, dated Sep 09, 2026 β love you, bye, go rebuild your conversations database responsibly. ππ¦π
π¦ where this page comes from
- fedora 44: cyrus-imapd 3.12.4-1.fc44 Β· BSD-Attribution-HPND-disclaimer
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms