aboutsummaryrefslogtreecommitdiff
path: root/tests/ftpserver.pl
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-04-26 21:12:36 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-04-26 21:12:36 +0100
commitc4067a5678321b1755f6027a5c7510b17e7c16a6 (patch)
treef899eda7c743c4539cbb5e646f7b30801532bc87 /tests/ftpserver.pl
parent0523152ad6e9d558c31bf176e8103038430badb3 (diff)
ftpserver.pl: Fixed imap logout confirmation data
An IMAP server should response with the BYE continuation response before confirming the LOGOUT command was successful.
Diffstat (limited to 'tests/ftpserver.pl')
-rwxr-xr-xtests/ftpserver.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index f6cb25511..4c0144ff9 100755
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -581,12 +581,12 @@ sub protocolsetup {
'EXAMINE' => \&EXAMINE_imap,
'FETCH' => \&FETCH_imap,
'LIST' => \&LIST_imap,
+ 'LOGOUT' => \&LOGOUT_imap,
'SELECT' => \&SELECT_imap,
'STORE' => \&STORE_imap
);
%displaytext = (
'LOGIN' => ' OK We are happy you popped in!',
- 'LOGOUT' => ' OK thanks for the fish',
'welcome' => join("",
' _ _ ____ _ '."\r\n",
' ___| | | | _ \| | '."\r\n",
@@ -1004,6 +1004,13 @@ sub EXAMINE_imap {
return 0;
}
+sub LOGOUT_imap {
+ sendcontrol "* BYE cURL IMAP server signing off\r\n";
+ sendcontrol "$cmdid OK LOGOUT completed\r\n";
+
+ return 0;
+}
+
################
################ POP3 commands
################