[dovecot-cvs] dovecot/src/master mail-process.c,1.115,1.116

tss at dovecot.org tss at dovecot.org
Thu Mar 15 15:59:15 EET 2007


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

Modified Files:
	mail-process.c 
Log Message:
Make processes created with --exec-mail log to the configured location.



Index: mail-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/mail-process.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- mail-process.c	12 Feb 2007 18:14:13 -0000	1.115
+++ mail-process.c	15 Mar 2007 13:59:13 -0000	1.116
@@ -349,6 +349,15 @@
 				     getenv("TCPREMOTEIP"),
 				     getpid(), geteuid());
 
+	/* set up logging */
+	env_put(t_strconcat("LOG_TIMESTAMP=", set->log_timestamp, NULL));
+	if (*set->log_path == '\0')
+		env_put("USE_SYSLOG=1");
+	else
+		env_put(t_strconcat("LOGFILE=", set->log_path, NULL));
+	if (*set->info_log_path != '\0')
+		env_put(t_strconcat("INFOLOGFILE=", set->info_log_path, NULL));
+
 	mail_process_set_environment(set, getenv("MAIL"), var_expand_table,
 				     FALSE);
         client_process_exec(executable, "");



More information about the dovecot-cvs mailing list