2

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 =<value>.

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.