[dovecot-cvs] dovecot/src/master mail-process.c, 1.96.2.16, 1.96.2.17

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


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

Modified Files:
      Tag: branch_1_0
	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.96.2.16
retrieving revision 1.96.2.17
diff -u -d -r1.96.2.16 -r1.96.2.17
--- mail-process.c	10 Mar 2007 20:58:45 -0000	1.96.2.16
+++ mail-process.c	15 Mar 2007 13:59:10 -0000	1.96.2.17
@@ -351,6 +351,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