test677: IMAP CONNECT_ONLY, custom command and then exit

Adjusted ftpserver.pl to add support for the IMAP IDLE command

Adjusted test 660 to sync with the fix
This commit is contained in:
Daniel Stenberg 2021-06-18 23:49:25 +02:00
parent 9accc48850
commit a5ab72d5ed
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 174 additions and 3 deletions

View file

@ -643,6 +643,7 @@ sub protocolsetup {
'STATUS' => \&STATUS_imap,
'STORE' => \&STORE_imap,
'UID' => \&UID_imap,
'IDLE' => \&IDLE_imap,
);
%displaytext = (
'welcome' => join("",
@ -1587,6 +1588,13 @@ sub COPY_imap {
return 0;
}
sub IDLE_imap {
logmsg "IDLE received\n";
sendcontrol "+ entering idle mode\r\n";
return 0;
}
sub UID_imap {
my ($args) = @_;
my ($command) = split(/ /, $args, 1);