[dovecot-cvs] dovecot/src/imap main.c,1.21,1.22

cras at procontrol.fi cras at procontrol.fi
Thu Jan 30 19:59:34 EET 2003


Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv27713/src/imap

Modified Files:
	main.c 
Log Message:
Rewrote setting handling. Changed some existing settings also since POP3
support required changes anyway. POP3 seems to be really working now :)



Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/main.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- main.c	27 Jan 2003 04:23:45 -0000	1.21
+++ main.c	30 Jan 2003 17:59:32 -0000	1.22
@@ -36,17 +36,17 @@
 	}
 	i_snprintf(log_prefix, sizeof(log_prefix), "imap(%s)", user);
 
-	if (getenv("IMAP_USE_SYSLOG") != NULL)
+	if (getenv("USE_SYSLOG") != NULL)
 		i_set_failure_syslog(log_prefix, LOG_NDELAY, LOG_MAIL);
 	else {
 		/* log to file or stderr */
-		i_set_failure_file(getenv("IMAP_LOGFILE"), log_prefix);
+		i_set_failure_file(getenv("LOGFILE"), log_prefix);
 	}
 
-	if (getenv("IMAP_INFOLOGFILE") != NULL)
-		i_set_info_file(getenv("IMAP_INFOLOGFILE"));
+	if (getenv("INFOLOGFILE") != NULL)
+		i_set_info_file(getenv("INFOLOGFILE"));
 
-	i_set_failure_timestamp_format(getenv("IMAP_LOGSTAMP"));
+	i_set_failure_timestamp_format(getenv("LOGSTAMP"));
 }
 
 static void drop_privileges(void)




More information about the dovecot-cvs mailing list