changeset 4313:d301901c20a5 HEAD

Removed LOGIN and AUTHENTICATE command handlers completely. They're only valid in non-authenticated state and there's really no point in having them here anymore.
author Timo Sirainen <tss@iki.fi>
date Thu, 08 Jun 2006 19:54:10 +0300
parents 2cb75f2e25c6
children 03e427774958
files src/imap/Makefile.am src/imap/cmd-authenticate.c src/imap/cmd-login.c src/imap/commands.c src/imap/commands.h
diffstat 5 files changed, 0 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/Makefile.am	Thu Jun 08 19:52:15 2006 +0300
+++ b/src/imap/Makefile.am	Thu Jun 08 19:54:10 2006 +0300
@@ -36,7 +36,6 @@
 
 cmds = \
 	cmd-append.c \
-	cmd-authenticate.c \
 	cmd-capability.c \
 	cmd-check.c \
 	cmd-close.c \
@@ -48,7 +47,6 @@
 	cmd-fetch.c \
 	cmd-idle.c \
 	cmd-list.c \
-	cmd-login.c \
 	cmd-logout.c \
 	cmd-lsub.c \
 	cmd-namespace.c \
--- a/src/imap/cmd-authenticate.c	Thu Jun 08 19:52:15 2006 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-/* Copyright (C) 2002 Timo Sirainen */
-
-#include "common.h"
-#include "commands.h"
-
-bool cmd_authenticate(struct client_command_context *cmd)
-{
-	client_send_tagline(cmd, "OK Already authenticated.");
-	return TRUE;
-}
--- a/src/imap/cmd-login.c	Thu Jun 08 19:52:15 2006 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-/* Copyright (C) 2002 Timo Sirainen */
-
-#include "common.h"
-#include "commands.h"
-
-bool cmd_login(struct client_command_context *cmd)
-{
-	client_send_tagline(cmd, "OK Already logged in.");
-	return TRUE;
-}
--- a/src/imap/commands.c	Thu Jun 08 19:52:15 2006 +0300
+++ b/src/imap/commands.c	Thu Jun 08 19:54:10 2006 +0300
@@ -7,9 +7,7 @@
 #include <stdlib.h>
 
 const struct command imap4rev1_commands[] = {
-	{ "AUTHENTICATE",	cmd_authenticate },
 	{ "CAPABILITY",		cmd_capability },
-	{ "LOGIN",		cmd_login },
 	{ "LOGOUT",		cmd_logout },
 	{ "NOOP",		cmd_noop },
 
--- a/src/imap/commands.h	Thu Jun 08 19:52:15 2006 +0300
+++ b/src/imap/commands.h	Thu Jun 08 19:54:10 2006 +0300
@@ -32,8 +32,6 @@
 /* IMAP4rev1 commands: */
 
 /* Non-Authenticated State */
-bool cmd_authenticate(struct client_command_context *cmd);
-bool cmd_login(struct client_command_context *cmd);
 bool cmd_logout(struct client_command_context *cmd);
 
 bool cmd_capability(struct client_command_context *cmd);