mirror of
https://github.com/moparisthebest/curl
synced 2025-01-08 12:28:06 -05:00
ftpserver.pl: Corrected misaligned indentation in POP3 handlers
Fixed incorrect indentation used in both the RETR_pop3 and LIST_pop3 functions which was 5 and 9 characters rather than 4 and 8.
This commit is contained in:
parent
8a4069fb17
commit
7e06c336d6
@ -1274,9 +1274,8 @@ sub RETR_pop3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub LIST_pop3 {
|
sub LIST_pop3 {
|
||||||
|
# This is a built-in fake-message list
|
||||||
# this is a built-in fake-message list
|
my @data = (
|
||||||
my @pop3list=(
|
|
||||||
"1 100\r\n",
|
"1 100\r\n",
|
||||||
"2 4294967400\r\n", # > 4 GB
|
"2 4294967400\r\n", # > 4 GB
|
||||||
"4 200\r\n", # Note that message 3 is a simulated "deleted" message
|
"4 200\r\n", # Note that message 3 is a simulated "deleted" message
|
||||||
@ -1286,11 +1285,11 @@ my @pop3list=(
|
|||||||
|
|
||||||
sendcontrol "+OK Listing starts\r\n";
|
sendcontrol "+OK Listing starts\r\n";
|
||||||
|
|
||||||
for my $d (@pop3list) {
|
for my $d (@data) {
|
||||||
sendcontrol $d;
|
sendcontrol $d;
|
||||||
}
|
}
|
||||||
|
|
||||||
# end with the magic 3-byte end of listing marker
|
# End with the magic 3-byte end of listing marker
|
||||||
sendcontrol ".\r\n";
|
sendcontrol ".\r\n";
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user