From 2902eddfd8384d56c6c49cb931e9326fa05c111e Mon Sep 17 00:00:00 2001 From: Dave West Date: Thu, 17 Jul 2008 18:36:27 +0000 Subject: [PATCH] POP3 server now supports the nologin flag in the context and will refuse connections if it is set. --- citadel/modules/pop3/serv_pop3.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/citadel/modules/pop3/serv_pop3.c b/citadel/modules/pop3/serv_pop3.c index aee455fed..79a6b592b 100644 --- a/citadel/modules/pop3/serv_pop3.c +++ b/citadel/modules/pop3/serv_pop3.c @@ -671,6 +671,11 @@ void pop3_command_loop(void) { else if (!CC->logged_in) { cprintf("-ERR Not logged in.\r\n"); } + + else if (CC->nologin) { + cprintf("-ERR System busy, try later.\r\n"); + CC->kill_me = 1; + } else if (!strncasecmp(cmdbuf, "LIST", 4)) { pop3_list(&cmdbuf[5]); -- 2.30.2