[dovecot-cvs] dovecot/src/imap main.c,1.8,1.9

cras at procontrol.fi cras at procontrol.fi
Tue Nov 19 15:09:28 EET 2002


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

Modified Files:
	main.c 
Log Message:
Send PREAUTH if we were started without LOGIN_TAG environment (ie. not
through master process).



Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/main.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- main.c	6 Nov 2002 14:33:27 -0000	1.8
+++ main.c	19 Nov 2002 13:09:25 -0000	1.9
@@ -75,15 +75,18 @@
 			i_fatal("MAIL environment missing and "
 				"autodetection failed (home %s)", home);
 		}
-	} else {
-		client = client_create(hin, hout, storage);
+	}
 
-		tag = getenv("LOGIN_TAG");
-		if (tag == NULL || *tag == '\0')
-			tag = "*";
+	client = client_create(hin, hout, storage);
 
-		client_send_line(client, t_strconcat(tag, " OK Logged in.",
-						     NULL));
+	tag = getenv("LOGIN_TAG");
+	if (tag == NULL || *tag == '\0') {
+		client_send_line(client, t_strconcat(
+			" * PREAUTH [CAPABILITY "CAPABILITY_STRING"] "
+			"Logged in as ", getenv("USER"), NULL));
+	} else {
+		client_send_line(client,
+				 t_strconcat(tag, " OK Logged in.", NULL));
 	}
 }
 




More information about the dovecot-cvs mailing list