]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox: Allow ":" separator between mail_attachment_fs driver and args.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 23 Mar 2017 13:05:12 +0000 (15:05 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 27 Mar 2017 09:57:02 +0000 (12:57 +0300)
The ":" separator is nowadays commonly used elsewhere for the separator,
so it should work here as well.

src/lib-storage/index/dbox-common/dbox-storage.c

index add063923cc8f9d63a7cd47304d83d80d4ec2253..9e24659dbbccd47c334428d83152dc6465c524b5 100644 (file)
@@ -98,7 +98,7 @@ int dbox_storage_create(struct mail_storage *_storage,
        if (*set->mail_attachment_fs != '\0') {
                const char *name, *args, *dir;
 
-               args = strchr(set->mail_attachment_fs, ' ');
+               args = strpbrk(set->mail_attachment_fs, ": ");
                if (args == NULL) {
                        name = set->mail_attachment_fs;
                        args = "";