changeset 4634:5e94f1332189 HEAD

Expand home directory in mail env if it exists as eg. "mbox:~:INBOX=.." or as the last character
author Timo Sirainen <tss@iki.fi>
date Sun, 08 Oct 2006 20:27:14 +0300
parents 9de853d23279
children 210bb1ff0e6e
files src/master/mail-process.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/mail-process.c	Sun Oct 08 16:28:56 2006 +0300
+++ b/src/master/mail-process.c	Sun Oct 08 20:27:14 2006 +0300
@@ -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);
 	}