]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: write subscription file in version 2 format
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Wed, 27 Apr 2016 07:17:27 +0000 (10:17 +0300)
committerGitLab <gitlab@git.dovecot.net>
Fri, 29 Apr 2016 19:24:37 +0000 (22:24 +0300)
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.

src/lib-storage/list/subscription-file.c

index d9f459090a808f0ad8619b78556d8267627cee30..c47b03c4118a89923482b5eedbd20150ad033ab3 100644 (file)
@@ -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";