]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Allow storage name to contain '_'
authorTimo Sirainen <tss@iki.fi>
Tue, 29 Oct 2013 19:11:10 +0000 (21:11 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 29 Oct 2013 19:11:10 +0000 (21:11 +0200)
src/lib-storage/mail-storage.c

index 70cfbc7aa1369662a1bd7eff4d2218eab46db3e1..a6e8c1c0e6b8afce6d8afe17c2b1e3cb856ba06b 100644 (file)
@@ -118,7 +118,7 @@ mail_storage_set_autodetection(const char **data, const char **driver)
 
        /* check if data is in driver:data format (eg. mbox:~/mail) */
        p = *data;
-       while (i_isalnum(*p)) p++;
+       while (i_isalnum(*p) || *p == '_') p++;
 
        if (*p == ':' && p != *data) {
                /* no autodetection if the storage driver is given. */