From: Martti Rannanjärvi Date: Wed, 27 Apr 2016 07:17:27 +0000 (+0300) Subject: lib-storage: write subscription file in version 2 format X-Git-Tag: 2.3.0.rc1~3890 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d61490e38c4c2fbfb761200f4169c52c09a63169;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: write subscription file in version 2 format Write subscriptions file in a format that only v2.2.17 or newer can read, so after dovecot converts the files to the new format, downgrading to a version older than v2.2.17 is not supported. --- diff --git a/src/lib-storage/list/subscription-file.c b/src/lib-storage/list/subscription-file.c index d9f459090a..c47b03c411 100644 --- a/src/lib-storage/list/subscription-file.c +++ b/src/lib-storage/list/subscription-file.c @@ -127,7 +127,7 @@ int subsfile_set_subscribed(struct mailbox_list *list, const char *path, int fd_in, fd_out; enum mailbox_list_path_type type; bool found, changed = FALSE, failed = FALSE; - unsigned int version = 0; + unsigned int version = 2; if (strcasecmp(name, "INBOX") == 0) name = "INBOX";