dovecot-1.2: Don't expand ~/ in mail_location or namespace locat...

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 5 17:12:16 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/7038df7f5d34
changeset: 8242:7038df7f5d34
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 05 17:12:11 2008 +0300
description:
Don't expand ~/ in mail_location or namespace location.
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 ~.

diffstat:

1 file changed, 6 deletions(-)
src/master/mail-process.c |    6 ------

diffs (16 lines):

diff -r 9bc8264d3d00 -r 7038df7f5d34 src/master/mail-process.c
--- a/src/master/mail-process.c	Sun Oct 05 17:08:11 2008 +0300
+++ b/src/master/mail-process.c	Sun Oct 05 17:12:11 2008 +0300
@@ -222,12 +222,6 @@ expand_mail_env(const char *env, const s
 		}
 
 		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 */


More information about the dovecot-cvs mailing list