diff src/pop3/main.c @ 15785:7e292b8352d9

pop3: Use RFC 3206 [SYS/*] and [AUTH] response codes.
author Timo Sirainen <tss@iki.fi>
date Sat, 16 Feb 2013 17:54:57 +0200
parents 36ef72481934
children 35194cf0693e
line wrap: on
line diff
--- a/src/pop3/main.c	Sat Feb 16 17:33:27 2013 +0200
+++ b/src/pop3/main.c	Sat Feb 16 17:54:57 2013 +0200
@@ -99,7 +99,7 @@
 			 const char **error_r)
 {
 	const char *lookup_error_str =
-		"-ERR [IN-USE] "MAIL_ERRSTR_CRITICAL_MSG"\r\n";
+		"-ERR [SYS/TEMP] "MAIL_ERRSTR_CRITICAL_MSG"\r\n";
 	struct mail_storage_service_user *user;
 	struct mail_user *mail_user;
 	struct client *client;
@@ -184,7 +184,7 @@
 {
 	const char *msg;
 
-	msg = t_strdup_printf("-ERR [IN-USE] %s\r\n", errormsg);
+	msg = t_strdup_printf("-ERR [SYS/TEMP] %s\r\n", errormsg);
 	if (write(client->fd, msg, strlen(msg)) < 0) {
 		/* ignored */
 	}
@@ -216,7 +216,7 @@
 
 	if (IS_STANDALONE() && getuid() == 0 &&
 	    net_getpeername(1, NULL, NULL) == 0) {
-		printf("-ERR pop3 binary must not be started from "
+		printf("-ERR [SYS/PERM] pop3 binary must not be started from "
 		       "inetd, use pop3-login instead.\n");
 		return 1;
 	}