From: Dave West Date: Thu, 17 Jul 2008 18:37:06 +0000 (+0000) Subject: IMAP now supports the nologin flag in the context and will refuse X-Git-Tag: v7.86~2086 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=3ff43dba1f7e781440727088b0a3c73bf7add09a IMAP now supports the nologin flag in the context and will refuse connections if its set. --- diff --git a/citadel/modules/imap/serv_imap.c b/citadel/modules/imap/serv_imap.c index 2a47b4e22..5c2e15899 100644 --- a/citadel/modules/imap/serv_imap.c +++ b/citadel/modules/imap/serv_imap.c @@ -498,6 +498,12 @@ void imap_greeting(void) IMAP->cached_rfc822_msgnum = (-1); IMAP->cached_rfc822_withbody = 0; + if (CC->nologin) + { + cprintf("* BYE; Server busy, try later\r\n"); + CC->kill_me = 1; + return; + } cprintf("* OK ["); imap_output_capability_string(); cprintf("] %s IMAP4rev1 %s ready\r\n", config.c_fqdn, CITADEL);