]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Don't expand ~/ in mail_location or namespace location.
authorTimo Sirainen <tss@iki.fi>
Sun, 5 Oct 2008 14:12:11 +0000 (17:12 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 5 Oct 2008 14:12:11 +0000 (17:12 +0300)
lib-storage does that expansion in any case and this is kind of a kludgy
workaround to allow expire-tool to work by letting it expand the ~.

--HG--
branch : HEAD

src/master/mail-process.c

index 73d7ba16edb83a5df65a0ac46bbc6867e7391c3b..3775212c2c51b300ea8f394953d03417867ec0ea 100644 (file)
@@ -224,12 +224,6 @@ expand_mail_env(const char *env, const struct var_expand_table *table)
                str_append_c(str, *env++);
        }
 
-       if (env[0] == '~' &&
-           (env[1] == '/' || env[1] == '\0' || env[1] == ':')) {
-               /* expand home */
-               env = t_strconcat("%h", env+1, NULL);
-       }
-
        /* expand %vars */
        var_expand(str, env, table);
        return str_c(str);