* if we fail to log in because of user/passvoid wrong, reply with NO instead of BAD
authorWilfried Göesgens <willi@citadel.org>
Thu, 26 Aug 2010 17:39:40 +0000 (17:39 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 26 Aug 2010 17:39:40 +0000 (17:39 +0000)
citadel/modules/imap/serv_imap.c

index baee87c1abc0fe933815a6123685e2ab24c5d6b0..27c0da4ccbb424f7082b728972d2310d344d7400 100644 (file)
@@ -556,6 +556,11 @@ void imap_login(int num_parms, ConstStr *Params)
                                cprintf("] Hello, %s\r\n", CC->user.fullname);
                                return;
                        }
+                       else
+                       {
+                               cprintf("%s NO AUTHENTICATE %s failed\r\n",
+                                       Params[0].Key, Params[3].Key);
+                       }
                }
 
                cprintf("%s BAD Login incorrect\r\n", Params[0].Key);