[dovecot-cvs] dovecot/src/master mail-process.c,1.96.2.7,1.96.2.8
tss at dovecot.org
tss at dovecot.org
Sun Oct 8 20:27:46 UTC 2006
Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv18835
Modified Files:
Tag: branch_1_0
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.96.2.7
retrieving revision 1.96.2.8
diff -u -d -r1.96.2.7 -r1.96.2.8
--- mail-process.c 11 Aug 2006 01:12:04 -0000 1.96.2.7
+++ mail-process.c 8 Oct 2006 17:27:13 -0000 1.96.2.8
@@ -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