CLEANUP: assorted typo fixes in the code and comments

This is 37th iteration of typo fixes
This commit is contained in:
Ilya Shipitsin
2023-11-21 19:54:16 +01:00
committed by Willy Tarreau
parent da264261d3
commit 80813cdd2a
66 changed files with 109 additions and 109 deletions

View File

@@ -43,7 +43,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
-- read line
ret = tcp:receive("*l")
if ret == nil then
return false, "Connection unexpectly closed"
return false, "Connection unexpectedly closed"
end
-- expected code
if string.match(ret, code) ~= nil then
@@ -73,7 +73,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
if tcp:send("HELO " .. domain .. "\r\n") == nil then
tcp:close()
return false, "Connection unexpectly closed"
return false, "Connection unexpectedly closed"
end
ret, reason = smtp_wait_code(tcp, '^250 ')
@@ -84,7 +84,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
if tcp:send("MAIL FROM: <" .. from .. ">\r\n") == nil then
tcp:close()
return false, "Connection unexpectly closed"
return false, "Connection unexpectedly closed"
end
ret, reason = smtp_wait_code(tcp, '^250 ')
@@ -95,7 +95,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
if tcp:send("RCPT TO: <" .. to .. ">\r\n") == nil then
tcp:close()
return false, "Connection unexpectly closed"
return false, "Connection unexpectedly closed"
end
ret, reason = smtp_wait_code(tcp, '^250 ')
@@ -106,7 +106,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
if tcp:send("DATA\r\n") == nil then
tcp:close()
return false, "Connection unexpectly closed"
return false, "Connection unexpectedly closed"
end
ret, reason = smtp_wait_code(tcp, '^354 ')
@@ -117,7 +117,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
if tcp:send(data .. "\r\n.\r\n") == nil then
tcp:close()
return false, "Connection unexpectly closed"
return false, "Connection unexpectedly closed"
end
ret, reason = smtp_wait_code(tcp, '^250 ')
@@ -128,7 +128,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
if tcp:send("QUIT\r\n") == nil then
tcp:close()
return false, "Connection unexpectly closed"
return false, "Connection unexpectedly closed"
end
ret, reason = smtp_wait_code(tcp, '^221 ')