Skip to content
Snippets Groups Projects
Commit 49777502 authored by Steve Holme's avatar Steve Holme
Browse files

ftpserver.pl: Added support for the IMAP CHECK command

parent ea38a705
No related branches found
No related tags found
No related merge requests found
......@@ -578,6 +578,7 @@ sub protocolsetup {
%commandfunc = (
'APPEND' => \&APPEND_imap,
'CAPABILITY' => \&CAPABILITY_imap,
'CHECK' => \&CHECK_imap,
'CREATE' => \&CREATE_imap,
'DELETE' => \&DELETE_imap,
'EXAMINE' => \&EXAMINE_imap,
......@@ -1162,6 +1163,17 @@ sub RENAME_imap {
return 0;
}
sub CHECK_imap {
if ($selected eq "") {
sendcontrol "$cmdid BAD Command received in Invalid state\r\n";
}
else {
sendcontrol "$cmdid OK CHECK completed\r\n";
}
return 0;
}
sub LOGOUT_imap {
sendcontrol "* BYE cURL IMAP server signing off\r\n";
sendcontrol "$cmdid OK LOGOUT completed\r\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment