Skip to content

Commit b2ba4f7

Browse files
fleischiecmouse
authored andcommitted
docs: core/config/mailbox_formats/dbox - Document migration away from mailbox_directory_name_legacy
1 parent 69a28d1 commit b2ba4f7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

data/updates.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export const updates = {
144144
settings_mail_cache_max_headers_count_added: '2.4.0',
145145
settings_mail_cache_max_header_name_length_added: '2.4.0',
146146
settings_mail_lua_added: '2.4.0',
147+
settings_mailbox_directory_name_legacy_deprecated: '2.4.2',
147148
settings_mailbox_special_use_changed: '2.4.0',
148149
settings_metric_fields_changed: '2.4.0',
149150
settings_passdb_mechanisms_filter_added: '2.4.0',

docs/core/config/mailbox_formats/dbox.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ dovecotlinks:
1212
sdbox:
1313
hash: single-dbox-sdbox
1414
text: sdbox
15+
dbox_migrating_away_from_mailbox_directory_name_legacy:
16+
hash: migrating-away-from-mailbox-directory-name-legacy
17+
text: "dbox: Migrating away from `mailbox_directory_name_legacy`"
1518
---
1619

1720
# dbox Mailbox Format
@@ -287,3 +290,18 @@ mail_path = ~/mdbox
287290
* [[setting,mailbox_list_layout,fs]],
288291
* [[setting,mailbox_directory_name,dbox-Mails]], and
289292
* [[setting,mailbox_root_directory_name,mailboxes]].
293+
294+
### Migrating away from `mailbox_directory_name_legacy`
295+
296+
[[deprecated,settings_mailbox_directory_name_legacy_deprecated]]
297+
[[setting,mailbox_directory_name_legacy]] setting is deprecated and its default
298+
value is changed from `true` to `false`. This change requires migrations, though:
299+
300+
* Start with [[setting,mailbox_directory_name_legacy,yes]],
301+
* for each user run:
302+
`doveadm -o mail_home=/var/newmails/$user -o mailbox_directory_name_legacy=no sync -u $user`,
303+
* shutdown all mail access,
304+
* for each user run [[man,doveadm-sync]] again,
305+
* switch the [[setting_text,mail_path,mail directory]],
306+
* set [[setting,mailbox_directory_name_legacy,no]],
307+
* start dovecot.

0 commit comments

Comments
 (0)