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

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 5 17:11:49 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/e6cd18cbd698
changeset: 7916:e6cd18cbd698
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 05 17:11:45 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 fd204f7f7b29 -r e6cd18cbd698 src/master/mail-process.c
--- a/src/master/mail-process.c	Sun Oct 05 17:07:59 2008 +0300
+++ b/src/master/mail-process.c	Sun Oct 05 17:11:45 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