projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
704b914
)
POP3 server now supports the nologin flag in the context and will refuse
author
Dave West
<davew@uncensored.citadel.org>
Thu, 17 Jul 2008 18:36:27 +0000
(18:36 +0000)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/citadel/modules/pop3/serv_pop3.c
b/citadel/modules/pop3/serv_pop3.c
index aee455fed4e5d7b23b0eccd0bb1c598671e114b7..79a6b592ba30f746002eae1c939a632cabd43f77 100644
(file)
--- 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]);