mirror of
https://github.com/curl/curl.git
synced 2026-08-26 11:13:36 +03:00
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:
parent
9accc48850
commit
a5ab72d5ed
6 changed files with 174 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue