On Sun, Dec 14, 2008 at 10:48 PM, Marcin Rzepecki
Now 'log_path = %h/.MAIL/deliver.log' works for me! Thank you, Thomas! Here's a patch if someone would like to test this feature:
--- src/deliver/deliver.c.orig 2008-11-19 18:43:13.000000000 +0100 +++ src/deliver/deliver.c 2008-12-15 01:30:38.000000000 +0100 @@ -682,7 +682,8 @@ const char *prefix, *log_path, *stamp;
prefix = t_strdup_printf("deliver(%s)", username); - log_path = getenv("LOG_PATH"); + log_path = expand_mail_env( getenv("LOG_PATH"), + get_var_expand_table(username, getenv("HOME")) ); if (log_path == NULL || *log_path == '\0') { const char *env = getenv("SYSLOG_FACILITY"); int facility; @@ -695,7 +696,8 @@ i_set_failure_file(log_path, t_strconcat(prefix, ": ", NULL)); }
- log_path = getenv("INFO_LOG_PATH"); + log_path = expand_mail_env( getenv("INFO_LOG_PATH"), + get_var_expand_table(username, getenv("HOME")) ); if (log_path != NULL && *log_path != '\0') i_set_info_file(log_path);
Same here. Really nice. Is there any chance this feature could be added to the 1.1 branch? Regards Miguel