Mercurial > dovecot > core-2.2
changeset 22397:32fe9ba7019b
lib-storage: Add BROKENCHAR to mail_location
This makes the mailbox_list_settings.broken_char configurable. Mainly useful
with imapc when remote server doesn't contain valid mUTF-7 mailbox names.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 30 Jun 2017 15:02:40 +0300 |
parents | 0c6517451de5 |
children | 1b4e7b89b161 |
files | src/lib-storage/mailbox-list.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mailbox-list.c Mon Jun 26 19:44:43 2017 +0300 +++ b/src/lib-storage/mailbox-list.c Fri Jun 30 15:02:40 2017 +0300 @@ -351,6 +351,12 @@ else if (strcmp(key, "FULLDIRNAME") == 0) { set_r->index_control_use_maildir_name = TRUE; dest = &set_r->maildir_name; + } else if (strcmp(key, "BROKENCHAR") == 0) { + if (strlen(value) != 1) { + *error_r = "BROKENCHAR value must be a single character"; + return -1; + } + set_r->broken_char = value[0]; } else if (strcmp(key, "ITERINDEX") == 0) { set_r->iter_from_index_dir = TRUE; continue;