[dovecot-cvs] dovecot/src/master mail-process.c,1.106,1.107

tss at dovecot.org tss at dovecot.org
Sun Oct 8 18:27:18 UTC 2006


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv18844

Modified Files:
	mail-process.c 
Log Message:
Expand home directory in mail env if it exists as eg. "mbox:~:INBOX=.." or
as the last character



Index: mail-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/mail-process.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- mail-process.c	10 Sep 2006 12:48:32 -0000	1.106
+++ mail-process.c	8 Oct 2006 17:27:14 -0000	1.107
@@ -137,7 +137,8 @@
 		str_append_c(str, *env++);
 	}
 
-	if (env[0] == '~' && env[1] == '/') {
+	if (env[0] == '~' &&
+	    (env[1] == '/' || env[1] == '\0' || env[1] == ':')) {
 		/* expand home */
 		env = t_strconcat("%h", env+1, NULL);
 	}



More information about the dovecot-cvs mailing list