POP3 server now supports the nologin flag in the context and will refuse
authorDave West <davew@uncensored.citadel.org>
Thu, 17 Jul 2008 18:36:27 +0000 (18:36 +0000)
committerDave West <davew@uncensored.citadel.org>
Thu, 17 Jul 2008 18:36:27 +0000 (18:36 +0000)
connections if it is set.

citadel/modules/pop3/serv_pop3.c

index aee455fed4e5d7b23b0eccd0bb1c598671e114b7..79a6b592ba30f746002eae1c939a632cabd43f77 100644 (file)
@@ -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]);