From ce0ad4c6b687aa6ff8aa24ef510e6e8716f9e995 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Mon, 11 Jun 2001 18:15:49 +0000 Subject: debug code removed. --- src/smtp.lua | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/smtp.lua b/src/smtp.lua index 7f9af3d..6404e6c 100644 --- a/src/smtp.lua +++ b/src/smtp.lua @@ -29,7 +29,6 @@ end ----------------------------------------------------------------------------- local try_send = function(sock, line) local err = sock:send(line .. "\r\n") -print(line) if err then sock:close() end return err end @@ -47,14 +46,12 @@ local get_answer = function(control) local line, err = control:receive() local answer = line if err then return nil, err end -print(line) _,_, code, sep = strfind(line, "^(%d%d%d)(.)") if not code or not sep then return nil, answer end if sep == "-" then -- answer is multiline repeat line, err = control:receive() if err then return nil, err end -print(line) _,_, lastcode, sep = strfind(line, "^(%d%d%d)(.)") answer = answer .. "\n" .. line until code == lastcode and sep == " " -- answer ends with same code -- cgit v1.2.3-55-g6feb