[dovecot-cvs] dovecot/src/imap main.c,1.29,1.30

cras at procontrol.fi cras at procontrol.fi
Wed Mar 26 10:32:02 EET 2003


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

Modified Files:
	main.c 
Log Message:
Support for mailfront.



Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/main.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- main.c	18 Feb 2003 20:58:30 -0000	1.29
+++ main.c	26 Mar 2003 08:31:59 -0000	1.30
@@ -14,7 +14,7 @@
 #include <syslog.h>
 
 #define IS_STANDALONE() \
-        (getenv("LOGGED_IN") == NULL)
+        (getenv("LOGGED_IN") == NULL && getenv("IMAPLOGINTAG") == NULL)
 
 struct ioloop *ioloop;
 unsigned int max_custom_flag_length, mailbox_check_interval;
@@ -128,6 +128,10 @@
 		client_send_line(client, t_strconcat(
 			"* PREAUTH [CAPABILITY "CAPABILITY_STRING"] "
 			"Logged in as ", user, NULL));
+	} else if (getenv("IMAPLOGINTAG") != NULL) {
+		/* Support for mailfront */
+		client_send_line(client, t_strconcat(getenv("IMAPLOGINTAG"),
+						     " OK Logged in.", NULL));
 	}
 }
 




More information about the dovecot-cvs mailing list