From 3ff43dba1f7e781440727088b0a3c73bf7add09a Mon Sep 17 00:00:00 2001 From: Dave West Date: Thu, 17 Jul 2008 18:37:06 +0000 Subject: [PATCH] IMAP now supports the nologin flag in the context and will refuse connections if its set. --- citadel/modules/imap/serv_imap.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.30.2