Change existing dovecot maildir installation from m-UTF7 charset to UTF8 to avoid breaking TAB
4
votes
1
answer
1846
views
In an existing dovecot installation with many pre-existing folders using regional characters I would like to change m-UTF7 (
.&AMk-l&AOk-ments envoy&AOk-s
) foldernames to UTF8 (.Éléments envoyés
).
Among other reasons my main reason is folders like the above break TAB-completion navigation in the shell for me. And the replacement names are much easier and pleasing to visually parse.
Is there an integrated mechanism in dovecot facilitating the option change? Like:
if maildirCharSetOption==UTF8 and CurrentFolder.instr('&') then
SilentlyRenameFolderToUTF8(Currentfolder)`
or similar?
Or is the recommended way (and only way):
* somehow create list of affected folders
* use some scripting, awk and/or sed to
* generate shell batch command file with lots of mv
commands
* check script output batch file for correctness
* shutdown dovecot, postfix,
* rerun script to get up2date folder list and process that into mv
commands
* run resulting batch script file
* change dovecot config to "mail_location = maildir:/var/mail/%u:UTF-8=What "
* start dovecot&postfix again
From the documentation it is not clear, if I should use UTF-8=yes
or true
or 1
, or just UTF-8
without =
.
I have a workable idea on how to accomplish the above, but was wondering, if there is a better way, or a finished script from someone who inherited a m-UTF7 installation before, and wants to share that.
I think, there could be a way to suspend dovecot delivery temporarily instead of stopping dovecot, postfix, etc. And on first glance it looks like doveadm
could be leveraged for translation instead of a manual translation table.
It seems, m-UTF7 is the default. Why is that? Or, Are there reasons against using UTF-8 for folder names?
Asked by Alex Stragies
(6144 rep)
May 28, 2016, 01:50 PM
Last activity: Sep 11, 2019, 09:15 PM
Last activity: Sep 11, 2019, 09:15 PM