mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-04 02:23:31 +02:00
CLEANUP: assorted typo fixes in the code and comments
This is 37th iteration of typo fixes
This commit is contained in:
committed by
Willy Tarreau
parent
da264261d3
commit
80813cdd2a
@@ -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 ')
|
||||
|
||||
Reference in New Issue
Block a user