From: Dave West Date: Thu, 17 Jul 2008 18:36:27 +0000 (+0000) Subject: POP3 server now supports the nologin flag in the context and will refuse X-Git-Tag: v7.86~2087 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=2902eddfd8384d56c6c49cb931e9326fa05c111e POP3 server now supports the nologin flag in the context and will refuse connections if it is set. --- 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]);