X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/1973b16fdc6a371e6dadcf9b8f25196202013145..89bad3b56b7a76318113f3831b74c156044aa34b:/widgets/imap.lua diff --git a/widgets/imap.lua b/widgets/imap.lua index 1ebbb76..ea62cc7 100644 --- a/widgets/imap.lua +++ b/widgets/imap.lua @@ -42,7 +42,7 @@ local function worker(args) if not is_plain then local f = io.popen(password) - password = f:read("*a"):gsub("\n", "") + password = f:read("*all"):gsub("\n", "") f:close() end @@ -58,7 +58,7 @@ local function worker(args) head_command, server, port, mail, password, request) async.request(curl, function(f) - ws = f:read("*a") + ws = f:read("*all") f:close() _, mailcount = string.gsub(ws, "%d+", "")