client_send_reply(&client->common, IMAP_CMD_REPLY_BYE, "Logging out");
client_send_reply(&client->common, IMAP_CMD_REPLY_OK,
"Logout completed.");
- client_destroy(&client->common, "Aborted login");
+ client_destroy(&client->common, CLIENT_UNAUTHENTICATED_LOGOUT_MSG);
return 1;
}
#define AUTH_MASTER_WAITING_MSG \
"Waiting for authentication master process to respond.."
+/* Client logged out without having successfully authenticated. */
+#define CLIENT_UNAUTHENTICATED_LOGOUT_MSG \
+ "Aborted login by logging out"
+
struct master_service_connection;
enum client_disconnect_reason {
static bool cmd_quit(struct pop3_client *client)
{
client_send_reply(&client->common, POP3_CMD_REPLY_OK, "Logging out");
- client_destroy(&client->common, "Aborted login");
+ client_destroy(&client->common, CLIENT_UNAUTHENTICATED_LOGOUT_MSG);
return TRUE;
}